From 82fac85ea9198fe1a1962b1acc175578616a0a31 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Mon, 30 Sep 2019 18:35:57 -0400 Subject: nfsw/io.py: Update query. * nfsw/io.py (query): Use RedisC for Redis calls. --- nfsw/io.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nfsw/io.py b/nfsw/io.py index 49028b8..c789b69 100644 --- a/nfsw/io.py +++ b/nfsw/io.py @@ -61,10 +61,11 @@ def reset(): @login_required_ajax @preprocess def query(): + r = redisc() q = request.get_data(as_text=True) # Log query. - r().rpush(k('log'), q) + r.rpush('log', q) # Get current scene. scene = current_scene() -- cgit v1.2.3