Add TODO: datetime.now + TZ

This commit is contained in:
Santiago L 2022-10-27 23:12:17 +02:00
parent 407abf79b8
commit deec522dfb
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,8 @@ class BillingIndexView(View):
def dispatch_request(self): def dispatch_request(self):
# TODO (@slamora): replace hardcoded and get current time # TODO (@slamora): replace hardcoded and get current time
# https://dateutil.readthedocs.io/en/stable/_modules/dateutil/tz/tz.html?highlight=now()
# datetime.now(tzutc())
year = 2022 year = 2022
month = 9 month = 9
snapshot_register, snapshot_update = self.count_snapshot(year, month) snapshot_register, snapshot_update = self.count_snapshot(year, month)
@ -32,6 +34,7 @@ class BillingIndexView(View):
"month": month, "month": month,
"snapshot_register": snapshot_register, "snapshot_register": snapshot_register,
"snapshot_update": snapshot_update, "snapshot_update": snapshot_update,
# TODO (@slamora): data erasure count
} }
context = { context = {
"current_month_usage": current_month_usage, "current_month_usage": current_month_usage,