Fix missing events, show seconds delayed.

This commit is contained in:
tecnovert
2021-01-12 08:48:40 +02:00
parent 3cfc7d1437
commit ed22fe7d12
5 changed files with 19 additions and 19 deletions

View File

@@ -1725,9 +1725,8 @@ class BasicSwap(BaseApp):
query_str = 'SELECT created_at, trigger_at FROM eventqueue ' + \
'WHERE active_ind = 1 AND linked_id = x\'{}\' '.format(bid_id.hex())
q = session.execute(query_str)
events = []
for row in q:
events.append({'at': row[0], 'desc': 'Delaying until: {}'.format(format_timestamp(row[1]))})
events.append({'at': row[0], 'desc': 'Delaying until: {}'.format(format_timestamp(row[1], with_seconds=True))})
return events