diff options
author | rsiddharth <s@ricketyspace.net> | 2019-09-28 20:44:54 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-09-28 20:44:54 -0400 |
commit | eb5e1541c912c43664236169e3ac8efcde4894d1 (patch) | |
tree | bb92e59fc64b0a860b1fbd4118b0853466f0b11e /nfsw | |
parent | 73b2ad604be8a4084b3828d589617bab8c01f686 (diff) |
nfsw/io.py: Add reset.
nfsw/io.py (reset): New function.
Diffstat (limited to 'nfsw')
-rw-r--r-- | nfsw/io.py | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -35,6 +35,23 @@ def io(): return render_template('io.html') +@bp.route('/io/reset') +@login_required +def reset(): + r().delete(k('scene')) + r().delete(k('scene:sexshop:gg')) + r().delete(k('scenes:done')) + + r().delete(k('player:type')) + r().delete(k('player:type:body')) + r().delete(k('player:type:mind')) + r().delete(k('player:type:mind')) + + r().delete(k('log')) + + return 'Game reset' + + @bp.route('/io/query', methods=['POST']) @login_required_ajax @preprocess |