Changeset - 24254db0a05a
[Not reviewed]
default
0 1 0
Dennis Fink - 4 years ago 2021-03-20 12:35:41
dennis.fink@c3l.lu
Add redirect in views.py if nothing is in the request form
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
spaceapi/views.py
Show inline comments
 
@@ -109,6 +109,9 @@ def present():
 
            elif "leave" in request.form:
 
                active.remove_user_present(user)
 
                activev14.remove_user_present(user)
 
            else:
 
                return redirect(url_for("root.index"))
 

	
 
            active.save_last_state()
 
            activev14.save_last_state()
 
        return redirect(url_for("root.index"))
0 comments (0 inline, 0 general)