fix: inconsistency

This commit is contained in:
Lunaresk 2021-12-04 11:30:19 +01:00
parent e5fa7942c7
commit 9d404e0dae

View File

@ -122,7 +122,9 @@ class Database:
if failed: if failed:
failed['items'][value['item']] = value['amount'] failed['items'][value['item']] = value['amount']
else: else:
failed = dict(value) failed = {'user': user, 'items': {value['item']: value['amount']}}
if date:
failed['date'] = date
LOGGER.exception(e) LOGGER.exception(e)
except Exception as e: except Exception as e:
LOGGER.exception(e) LOGGER.exception(e)