mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 05:24:55 +03:00
feat: improve seed status response structure by including game ID
This commit is contained in:
parent
5fbf0baa0f
commit
09ea3b27f4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user