From 1b2eb2aea52e754ad167c63259eec80e35497dfa Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 16 Jan 2021 19:09:31 +0100 Subject: fix nop int vs str 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') -- cgit v0.10.2