Skip to content

Commit 2a82682

Browse files
committed
fix query upload-link-flags
1 parent 69409f8 commit 2a82682

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

dtable_events/tasks/dtable_upload_link_handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def handle_flags(self, session):
6666
seafile_api.del_file(repo_id, public_forms_path, file, '')
6767
except Exception as e:
6868
logger.exception('repo: %s handle upload flags error: %s', repo_id, e)
69+
if len(results) < limit:
70+
break
6971
offset += limit
7072
sql = "DELETE FROM dtable_form_upload_link_flags WHERE flag_time <= :flag_time"
7173
try:

0 commit comments

Comments
 (0)