update finanzer routes
if finanzer add credit or amount to a user, he get all creditList of all years of the user
This commit is contained in:
parent
6ee6c1d44a
commit
5fd734dc4e
|
@ -69,7 +69,8 @@ def _addAmount():
|
|||
LOGGER.error("KeyError in month. Month is set to default.")
|
||||
month = datetime.now().month
|
||||
LOGGER.debug("Year is {} and Month is {}".format(year, month))
|
||||
retVal = userController.addAmount(userID, amount, year=year, month=month).toJSON()
|
||||
userController.addAmount(userID, amount, year=year, month=month)
|
||||
retVal = {geruecht.year: geruecht.toJSON() for geruecht in userController.getUser(userID).geruechte}
|
||||
LOGGER.info("Send updated Geruecht")
|
||||
return jsonify(retVal)
|
||||
LOGGER.info("Permission Denied")
|
||||
|
@ -114,6 +115,7 @@ def _addCredit():
|
|||
|
||||
LOGGER.debug("Year is {} and Month is {}".format(year, month))
|
||||
retVal = userController.addCredit(userID, credit, year=year, month=month).toJSON()
|
||||
retVal = {geruecht.year: geruecht.toJSON() for geruecht in userController.getUser(userID).geruechte}
|
||||
LOGGER.info("Send updated Geruecht")
|
||||
return jsonify(retVal)
|
||||
LOGGER.info("Permission Denied")
|
||||
|
|
Loading…
Reference in New Issue