From ae9ecf09c2945def38b2c62531f2b7e604ae24e9 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 20 Apr 2022 21:15:32 +0100 Subject: [PATCH] Fake the subclass to ease migration --- handler/transactions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handler/transactions.py b/handler/transactions.py index 55e33f3..003a557 100644 --- a/handler/transactions.py +++ b/handler/transactions.py @@ -449,6 +449,7 @@ class Transactions(util.Base): matching_trades = [] for reference in refs: ref_data = self.get_ref(reference) + print("REF DATA", ref_data) tx_platform = ref_data["subclass"] tx_username = ref_data["buyer"] trade_id = ref_data["id"] @@ -638,6 +639,8 @@ class Transactions(util.Base): """ ref_data = r.hgetall(f"trade.{reference}") ref_data = util.convert(ref_data) + if "subclass" not in ref_data: + ref_data["subclass"] = "agora" if not ref_data: return False return ref_data