forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/helpers
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
..
alerts.py sfd 2022-05-08 06:01:42 +02:00
blackjack.py Blackjack: add five card charlie rule. 2022-05-20 23:08:20 -04:00
const.py fsd 2022-05-25 02:22:09 +02:00
discord.py sfd 2022-05-07 06:13:19 +02:00
get.py mn 2022-05-05 01:09:46 +02:00
jinja2.py fsd 2022-05-08 07:14:24 +02:00
lazy.py mn 2022-05-05 01:09:46 +02:00
media.py fd 2022-05-25 00:43:49 +02:00
sanitize.py Sanitize: modularize normalize_url, fix streamable. 2022-05-25 04:43:16 -04:00
security.py mn 2022-05-05 01:09:46 +02:00
slots.py fsd 2022-04-02 18:54:27 +02:00
treasure.py fs 2022-04-03 22:17:55 +02:00
wrappers.py Fix chat by setting g.timestamp. 2022-05-25 06:49:02 -04:00