mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +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
|
return auth_error
|
||||||
|
|
||||||
seed_status = []
|
seed_status = []
|
||||||
for _, downloader in downloads.items():
|
for game_id, downloader in downloads.items():
|
||||||
if not downloader:
|
if not downloader:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
response = downloader.get_download_status()
|
response = downloader.get_download_status()
|
||||||
|
|
||||||
if response.get('status') == 5:
|
if response.get('status') == 5:
|
||||||
seed_status.append(response)
|
seed_status.append({
|
||||||
|
'gameId': game_id,
|
||||||
|
**response,
|
||||||
|
})
|
||||||
|
|
||||||
return jsonify(seed_status), 200
|
return jsonify(seed_status), 200
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user