Fake the subclass to ease migration
This commit is contained in:
parent
0ec8476549
commit
ae9ecf09c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue