summaryrefslogtreecommitdiffstats
path: root/nfsw/io.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-09-28 15:37:09 -0400
committerrsiddharth <s@ricketyspace.net>2019-09-28 15:37:09 -0400
commit17dd940617bc7a4df9a70e9f15079f71697d5085 (patch)
tree8de82ab1f3b59a14358f3430a71458f6f74610be /nfsw/io.py
parent5ef15bdbbf3d22f9e2bbadee13708d489dffd759 (diff)
nfsw/io.py: Update preprocess.
nfsw/io.py (setup): Move function.. (proprocess): ...inside this function.
Diffstat (limited to 'nfsw/io.py')
-rw-r--r--nfsw/io.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nfsw/io.py b/nfsw/io.py
index e8d20b6..9c2a8b2 100644
--- a/nfsw/io.py
+++ b/nfsw/io.py
@@ -14,6 +14,10 @@ bp = Blueprint('io', __name__)
def preprocess(view):
+ def setup():
+ if not r().exists(k('scene')):
+ r().set(k('scene'), 'sexshop')
+
@functools.wraps(view)
def wrapped_view(**kwargs):
setup()
@@ -51,7 +55,3 @@ def query():
}
-def setup():
- """Setup user's state"""
- if not r().exists(k('scene')):
- r().set(k('scene'), 'sexshop')