From 4481f4707d65b84a11978e208b31411d96791c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Fri, 19 Jun 2020 22:23:46 +0200 Subject: [PATCH] fixed bug dass last_seen status auch beim stornieren gesendet wird --- geruecht/baruser/routes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/geruecht/baruser/routes.py b/geruecht/baruser/routes.py index 484cf4f..ababcfc 100644 --- a/geruecht/baruser/routes.py +++ b/geruecht/baruser/routes.py @@ -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))