Skip to content

Commit b0b4615

Browse files
committed
Revert "Remove dead code"
This reverts commit 22bb295.
1 parent 22bb295 commit b0b4615

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

history/management/commands/pull_deposits.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def handle(self, *args, **options):
2323
timestamp = d['timestamp']
2424
txid = d['withdrawalNumber'] if 'withdrawalNumber' in d.keys() else d['txid']
2525
status = d['status']
26+
created_on = datetime.datetime.fromtimestamp(timestamp)
2627
try:
2728
d = Deposit.objects.get(txid=txid)
2829
except:
@@ -32,4 +33,6 @@ def handle(self, *args, **options):
3233
d.txid = txid
3334
d.type = 'deposit' if amount > 0 else 'withdrawal'
3435
d.status = status
36+
d.created_on = created_on
37+
d.modified_on = created_on
3538
d.save()

0 commit comments

Comments
 (0)