From deec522dfb23b01dae42af6579c4b46ec5c83dc1 Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Thu, 27 Oct 2022 23:12:17 +0200 Subject: [PATCH] Add TODO: datetime.now + TZ --- ereuse_devicehub/billing/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ereuse_devicehub/billing/views.py b/ereuse_devicehub/billing/views.py index 1effbe4a..a3781466 100644 --- a/ereuse_devicehub/billing/views.py +++ b/ereuse_devicehub/billing/views.py @@ -23,6 +23,8 @@ class BillingIndexView(View): def dispatch_request(self): # 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 month = 9 snapshot_register, snapshot_update = self.count_snapshot(year, month) @@ -32,6 +34,7 @@ class BillingIndexView(View): "month": month, "snapshot_register": snapshot_register, "snapshot_update": snapshot_update, + # TODO (@slamora): data erasure count } context = { "current_month_usage": current_month_usage,