report new average data

This commit is contained in:
chris 2020-11-05 13:21:53 +01:00
parent 715b0a2fbf
commit d13ef5dfd8
1 changed files with 3 additions and 1 deletions

View File

@ -33,8 +33,10 @@ class BudgetBot(object):
reply = "Invalid budget name"
else:
reply = "Budget *{}*\n".format(budget[0]['name'])
reply += " Limit: {}\n".format(budget[0].get('limit'))
reply += " Available current month: {:.2f}".format(budget.get('limit'))
reply += " Average per day: {:.2f}".format(budget.get('average_per_day'))
reply += " Spent: {:.2f}\n".format(budget[0].get('spent'))
reply += " Spent per day: {:.2f}".format(budget.get('spent_per_day'))
reply += " Remaining: {:.2f}\n".format(budget[0].get('remaining'))
reply += " Remaining per day: {:.2f}".format(budget[0].get('remaining_per_day'))
else: