fixed bug dass last_seen status auch beim stornieren gesendet wird
This commit is contained in:
parent
8fa46f0eb3
commit
4481f4707d
|
@ -154,6 +154,9 @@ def _storno(**kwargs):
|
||||||
dic = user.toJSON()
|
dic = user.toJSON()
|
||||||
dic['amount'] = all
|
dic['amount'] = all
|
||||||
dic['type'] = type
|
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))
|
debug.debug("return {{ {} }}".format(dic))
|
||||||
creditL.info("{} Baruser {} {} storniert {} € von {} {}".format(
|
creditL.info("{} Baruser {} {} storniert {} € von {} {}".format(
|
||||||
date, kwargs['accToken'].user.firstname, kwargs['accToken'].user.lastname, amountl/100, user.firstname, user.lastname))
|
date, kwargs['accToken'].user.firstname, kwargs['accToken'].user.lastname, amountl/100, user.firstname, user.lastname))
|
||||||
|
|
Loading…
Reference in New Issue