From 5fef8d6451c935a54f6734915bee6d5aae4bd1f9 Mon Sep 17 00:00:00 2001 From: ZKWolf <34097612+wolfswolke@users.noreply.github.com> Date: Thu, 5 Sep 2024 16:59:29 +0200 Subject: [PATCH] Last commit. this was WIP --- src/endpoints/matchmaking.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/endpoints/matchmaking.py b/src/endpoints/matchmaking.py index b989d3b..a8cead0 100644 --- a/src/endpoints/matchmaking.py +++ b/src/endpoints/matchmaking.py @@ -592,7 +592,6 @@ def progression_player_end_of_match(): CurrencyB = user_wallet["currency_blood_cells"] CurrencyC = user_wallet["currency_ink_cells"] wallet = [] - for currency in data["earnedCurrencies"]: if currency["currencyName"] == "CurrencyA": wallet.append({"Currency": "CurrencyA", "Amount": currency["amount"]}) @@ -801,7 +800,7 @@ def progression_player_end_of_match(): # } # } # ] - return jsonify({"Player": {"Success": True}}) + return jsonify({ "Player": { "InitialExperienceProgressions": [ @@ -821,10 +820,21 @@ def progression_player_end_of_match(): } ], "TotalEarnedCurrency": wallet, - "Wallet": wallet, - "Events": [ - - ] + "Wallet": [ + { + "Currency": "CurrencyA", + "Amount": CurrencyA + }, + { + "Currency": "CurrencyB", + "Amount": CurrencyB + }, + { + "Currency": "CurrencyC", + "Amount": CurrencyC + } + ], + "Events": [] } }) except TimeoutError: