diff options
author | rsiddharth <s@ricketyspace.net> | 2019-10-19 21:19:35 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-10-19 21:19:35 -0400 |
commit | 26b713184c3ffdaf6a2be77e5b3249e41cccaf77 (patch) | |
tree | 50e0730a6875ae14020d124f1053b11c7065170e /nfsw | |
parent | 2c370abd7fc2eb285de44c317a113bd2952a000d (diff) |
nfsw/scenes.py: Update thanks.
* nfsw/scenes.py (thanks): Mark scene done and return '' from the next
time.
Diffstat (limited to 'nfsw')
-rw-r--r-- | nfsw/scenes.py | 8 |
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') |