last_active should change on voting and u know it
parent
4a4f709c63
commit
ef66c52aed
|
@ -111,7 +111,7 @@ def get_logged_in_user():
|
|||
# Check against last_active + ACTIVE_TIME to reduce frequency of
|
||||
# UPDATEs in exchange for a ±ACTIVE_TIME margin of error.
|
||||
|
||||
if not session.get("GLOBAL") and request.method == "POST" and not request.path.startswith('/vote/'):
|
||||
if not session.get("GLOBAL") and request.method == "POST":
|
||||
timestamp = int(time.time())
|
||||
if (v.last_active + LOGGEDIN_ACTIVE_TIME) < timestamp:
|
||||
v.last_active = timestamp
|
||||
|
|
Loading…
Reference in New Issue