From 17dd940617bc7a4df9a70e9f15079f71697d5085 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 28 Sep 2019 15:37:09 -0400 Subject: nfsw/io.py: Update preprocess. nfsw/io.py (setup): Move function.. (proprocess): ...inside this function. --- nfsw/io.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nfsw') 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') -- cgit v1.2.3