summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-09-30 18:35:57 -0400
committerrsiddharth <s@ricketyspace.net>2019-09-30 18:35:57 -0400
commit82fac85ea9198fe1a1962b1acc175578616a0a31 (patch)
treec67f3f3df0bfabcf4f282051635bfe6cb4d4850a
parent88cb6ee41ab4d7817471ddd36425c9606d9be85f (diff)
nfsw/io.py: Update query.
* nfsw/io.py (query): Use RedisC for Redis calls.
-rw-r--r--nfsw/io.py3
1 files changed, 2 insertions, 1 deletions
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()