forked from rDrama/rDrama
Snakes
67796acc11
The users online count recently added to wrappers.py:get_logged_in_user uses g.timestamp for its calculations. This is primarily set in __main__.py:before_request. However, chat has requests which do not trigger @app.before_request. To resolve this, we now set g.timestamp in the auth_required wrapper before calling get_logged_in_user(). I think this is safe in general; there's no particular harm to setting the timestamp _more_ frequently. |
||
---|---|---|
.. | ||
classes | ||
helpers | ||
routes | ||
templates | ||
tests | ||
__main__.py |