From 09ea3b27f43f61b71a8ba908735493e787e4f7c2 Mon Sep 17 00:00:00 2001 From: Hachi-R Date: Sat, 21 Dec 2024 14:39:16 -0300 Subject: [PATCH] feat: improve seed status response structure by including game ID --- python_rpc/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python_rpc/main.py b/python_rpc/main.py index 85d7334a..629e2c14 100644 --- a/python_rpc/main.py +++ b/python_rpc/main.py @@ -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