1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 14:10:00 +00:00

fix registration

This commit is contained in:
aldacron 2017-05-17 02:36:27 -07:00
parent 08217cee2f
commit 40c311f80a

View file

@ -77,7 +77,7 @@ def before_request():
flask.g.user = user flask.g.user = user
if not 'timeout' not in flask.session or flask.session['timeout'] < datetime.now(): if 'timeout' not in flask.session or flask.session['timeout'] < datetime.now():
flask.session['timeout'] = datetime.now() + timedelta(days=7) flask.session['timeout'] = datetime.now() + timedelta(days=7)
flask.session.permanent = True flask.session.permanent = True
flask.session.modified = True flask.session.modified = True