Skip to content

Commit

Permalink
update select
Browse files Browse the repository at this point in the history
  • Loading branch information
孙永强 committed Jul 11, 2024
1 parent adef5e2 commit d63ac28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions seahub/api2/endpoints/repo_trash.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def post(self, request, repo_id, format=None):
show_time = show_days

try:
deleted_entries = get_trash_records(repo_id, show_time, path)
deleted_entries = get_trash_records(repo_id, show_time)
except Exception as e:
logger.error(e)
error_msg = 'Internal Server Error'
Expand All @@ -403,4 +403,4 @@ def post(self, request, repo_id, format=None):
'data': items
}

return Response(result)
return Response(result)
4 changes: 2 additions & 2 deletions seahub/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,9 +813,9 @@ def get_user_traffic_by_month(username, month):
def get_file_history_suffix():
return seafevents_api.get_file_history_suffix(parsed_events_conf)

def get_trash_records(repo_id, show_time, path):
def get_trash_records(repo_id, show_time):
with _get_seafevents_session() as session:
res = seafevents_api.get_delete_records(session, repo_id, show_time, path)
res = seafevents_api.get_delete_records(session, repo_id, show_time)
return res

else:
Expand Down

0 comments on commit d63ac28

Please sign in to comment.