diff options
author | rsiddharth <s@ricketyspace.net> | 2019-09-28 15:37:09 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-09-28 15:37:09 -0400 |
commit | 17dd940617bc7a4df9a70e9f15079f71697d5085 (patch) | |
tree | 8de82ab1f3b59a14358f3430a71458f6f74610be | |
parent | 5ef15bdbbf3d22f9e2bbadee13708d489dffd759 (diff) |
nfsw/io.py: Update preprocess.
nfsw/io.py (setup): Move function..
(proprocess): ...inside this function.
-rw-r--r-- | nfsw/io.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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') |