summaryrefslogtreecommitdiffstats
path: root/nfsw/scenes.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-10-19 21:19:35 -0400
committerrsiddharth <s@ricketyspace.net>2019-10-19 21:19:35 -0400
commit26b713184c3ffdaf6a2be77e5b3249e41cccaf77 (patch)
tree50e0730a6875ae14020d124f1053b11c7065170e /nfsw/scenes.py
parent2c370abd7fc2eb285de44c317a113bd2952a000d (diff)
nfsw/scenes.py: Update thanks.
* nfsw/scenes.py (thanks): Mark scene done and return '' from the next time.
Diffstat (limited to 'nfsw/scenes.py')
-rw-r--r--nfsw/scenes.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/nfsw/scenes.py b/nfsw/scenes.py
index 7e48cb5..9e39674 100644
--- a/nfsw/scenes.py
+++ b/nfsw/scenes.py
@@ -590,4 +590,12 @@ def bedroom(o):
def thanks(o):
+ r = redis()
+
+ if r.sismember('scenes:done', 'thanks'):
+ return ''
+
+ # Mark scene done
+ r.sadd('scenes:done', 'thanks')
+
return read_junk('thanks/solong')