summaryrefslogtreecommitdiff
path: root/nop
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2021-01-16 18:09:31 (GMT)
committerChristian Pointner <equinox@helsinki.at>2021-01-16 18:09:31 (GMT)
commit1b2eb2aea52e754ad167c63259eec80e35497dfa (patch)
tree944d7af55128ef8fd5df60e6cd71c738c492f815 /nop
parent0ea0e99b1d0be3b10e0f65256ba1e93ea09b404b (diff)
fix nop int vs str
Diffstat (limited to 'nop')
-rw-r--r--nop/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nop/views.py b/nop/views.py
index 4c29829..1237948 100644
--- a/nop/views.py
+++ b/nop/views.py
@@ -109,7 +109,7 @@ def get_current(request):
def get(request, year=None, month=None, day=None, hour=None, minute=None):
- response = json.dumps(_bydate(year, month, day, hour, minute))
+ response = json.dumps(_bydate(int(year), int(month), int(day), int(hour), int(minute)))
return HttpResponse(response, content_type='application/json')