Add Trade and Transaction models
This commit is contained in:
@@ -59,9 +59,9 @@ class AggregatorClient(ABC):
|
||||
# for transaction_id in transaction_ids:
|
||||
if not transaction_ids:
|
||||
return
|
||||
db.r.sadd(new_key_name, *transaction_ids)
|
||||
await db.r.sadd(new_key_name, *transaction_ids)
|
||||
|
||||
difference = list(db.r.sdiff(new_key_name, old_key_name))
|
||||
difference = list(await db.r.sdiff(new_key_name, old_key_name))
|
||||
|
||||
difference = db.convert(difference)
|
||||
|
||||
@@ -70,7 +70,7 @@ class AggregatorClient(ABC):
|
||||
]
|
||||
|
||||
# Rename the new key to the old key so we can run the diff again
|
||||
db.r.rename(new_key_name, old_key_name)
|
||||
await db.r.rename(new_key_name, old_key_name)
|
||||
for transaction in new_transactions:
|
||||
transaction["subclass"] = self.name
|
||||
# self.tx.transaction(transaction)
|
||||
|
||||
Reference in New Issue
Block a user