forked from rDrama/rDrama
dont do last_active in voting
parent
2e64c252f2
commit
53e96f9b43
|
@ -115,7 +115,7 @@ def get_logged_in_user():
|
||||||
# Check against last_active + ACTIVE_TIME to reduce frequency of
|
# Check against last_active + ACTIVE_TIME to reduce frequency of
|
||||||
# UPDATEs in exchange for a ±ACTIVE_TIME margin of error.
|
# UPDATEs in exchange for a ±ACTIVE_TIME margin of error.
|
||||||
|
|
||||||
if not session.get("GLOBAL") and request.method == "POST":
|
if not session.get("GLOBAL") and request.method == "POST" and not request.path.startswith('/vote/'):
|
||||||
timestamp = int(time.time())
|
timestamp = int(time.time())
|
||||||
if (v.last_active + LOGGEDIN_ACTIVE_TIME) < timestamp:
|
if (v.last_active + LOGGEDIN_ACTIVE_TIME) < timestamp:
|
||||||
v.last_active = timestamp
|
v.last_active = timestamp
|
||||||
|
|
Loading…
Reference in New Issue