forked from MarseyWorld/MarseyWorld
master
parent
1e6c7034e8
commit
fabac68239
|
@ -23,7 +23,8 @@ def get_logged_in_user():
|
||||||
uid = session.get("user_id")
|
uid = session.get("user_id")
|
||||||
nonce = session.get("login_nonce", 0)
|
nonce = session.get("login_nonce", 0)
|
||||||
if not uid: x= (None, None)
|
if not uid: x= (None, None)
|
||||||
v = g.db.query(User).filter_by(id=uid).first()
|
if g.db: v = g.db.query(User).filter_by(id=uid).first()
|
||||||
|
else: v = None
|
||||||
|
|
||||||
if v and v.agendaposter_expires_utc and v.agendaposter_expires_utc < g.timestamp:
|
if v and v.agendaposter_expires_utc and v.agendaposter_expires_utc < g.timestamp:
|
||||||
v.agendaposter_expires_utc = 0
|
v.agendaposter_expires_utc = 0
|
||||||
|
|
Loading…
Reference in New Issue