Skip to content

Commit eb9759a

Browse files
committed
fix: sync_with_pause didn't return function result
1 parent 8b5130e commit eb9759a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sync/tasks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ def sync_with_pause(sync_function, *args):
5656
# 检查是否需要暂停
5757
pause_event.wait()
5858
try:
59-
sync_function(*args)
59+
return sync_function(*args)
60+
6061
except (ResponseCodeException, TooManyRequestsException) as e:
6162
if e.status_code in [429, 403]:
6263
log.warning(
@@ -358,7 +359,7 @@ async def sync_modrinth_queue():
358359
if project_ids:
359360
modrinth_pause_event.set()
360361
pool, futures = create_tasks_pool(
361-
sync_project, project_ids[:2], MAX_WORKERS, "modrinth"
362+
sync_project, project_ids, MAX_WORKERS, "modrinth"
362363
)
363364

364365
projects_detail_info = []

0 commit comments

Comments
 (0)