diff options
Diffstat (limited to 'ebus/web/controller.py')
-rw-r--r-- | ebus/web/controller.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ebus/web/controller.py b/ebus/web/controller.py index 406db01..f581e13 100644 --- a/ebus/web/controller.py +++ b/ebus/web/controller.py @@ -48,11 +48,10 @@ def index(req): @CacheDecorator(key=lambda args,kwargs: tuple(kwargs.keys()) + tuple(kwargs.values()), timeout=20) def json(req,sensor=None,from_date=None,till_date=None): - print "name=%s from_date=%s" % (name,from_date) + print "sensor=%s from_date=%s till_date=%s" % (sensor,from_date,till_date) return itty.Response(dump_json(data(sensor)), content_type="application/json") - @itty.get("/static/(?P<filename>.+)") def static(request,filename): file = itty.static_file(filename, root=os.path.join(os.path.dirname(__file__), 'static')) |