fixed bug dass last_seen status auch beim stornieren gesendet wird

This commit is contained in:
Tim Gröger 2020-06-19 22:23:46 +02:00
parent 8fa46f0eb3
commit 4481f4707d
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,9 @@ def _storno(**kwargs):
dic = user.toJSON()
dic['amount'] = all
dic['type'] = type
dic['last_seen'] = {"year": user.last_seen.year, "month": user.last_seen.month, "day": user.last_seen.day,
"hour": user.last_seen.hour, "minute": user.last_seen.minute,
"second": user.last_seen.second} if user.last_seen else None
debug.debug("return {{ {} }}".format(dic))
creditL.info("{} Baruser {} {} storniert {} € von {} {}".format(
date, kwargs['accToken'].user.firstname, kwargs['accToken'].user.lastname, amountl/100, user.firstname, user.lastname))