Skip to content

Commit

Permalink
Update repo_trash.py
Browse files Browse the repository at this point in the history
  • Loading branch information
r350178982 committed Jul 2, 2024
1 parent d142730 commit eff201a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions seahub/api2/endpoints/repo_trash.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,13 @@ def delete(self, request, repo_id, format=None):
return api_error(status.HTTP_403_FORBIDDEN, error_msg)

try:
from seahub.utils import SeafEventsSession, seafevents_api
seafile_api.clean_up_repo_history(repo_id, keep_days)
org_id = None if not request.user.org else request.user.org.org_id
clean_up_repo_trash.send(sender=None, org_id=org_id,
operator=username, repo_id=repo_id, repo_name=repo.name,
repo_owner=repo_owner, days=keep_days)

except Exception as e:
print(e, '11111111')
logger.error(e)
error_msg = 'Internal Server Error'
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, error_msg)
Expand Down

0 comments on commit eff201a

Please sign in to comment.