fix: bug after pause seed

This commit is contained in:
Zamitto 2024-12-23 09:38:50 -03:00
parent c9be6b6b92
commit 56217fbcf8
3 changed files with 14 additions and 14 deletions

View file

@ -59,12 +59,15 @@ def seed_status():
return auth_error
seed_status = []
for game_id, downloader in downloads.items():
if not downloader:
continue
response = downloader.get_download_status()
if response is None:
continue
if response.get('status') == 5:
seed_status.append({
'gameId': game_id,