forked from rDrama/rDrama
1
0
Fork 0
rDrama/files
Snakes 67796acc11 Fix chat by setting g.timestamp.
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.
2022-05-25 06:49:02 -04:00
..
classes Restore old agendaposter pfps system, add more. 2022-05-25 00:41:23 -04:00
helpers Fix chat by setting g.timestamp. 2022-05-25 06:49:02 -04:00
mail mn 2022-05-05 01:09:46 +02:00
routes Leaderboard: fix user join for ea48c46b0f. 2022-05-25 06:09:13 -04:00
templates Leaderboard: fix user join for ea48c46b0f. 2022-05-25 06:09:13 -04:00
tests vdffsd 2022-05-23 00:45:04 +02:00
__main__.py fsd 2022-05-20 20:45:12 +02:00