feat: improve seed status response structure by including game ID

This commit is contained in:
Hachi-R 2024-12-21 14:39:16 -03:00
parent 5fbf0baa0f
commit 09ea3b27f4

View File

@ -44,14 +44,17 @@ def seed_status():
return auth_error
seed_status = []
for _, downloader in downloads.items():
for game_id, downloader in downloads.items():
if not downloader:
continue
response = downloader.get_download_status()
if response.get('status') == 5:
seed_status.append(response)
seed_status.append({
'gameId': game_id,
**response,
})
return jsonify(seed_status), 200