Ben Kurtovic
23663afbe2
Fix background URL generation
il y a 2 ans
Ben Kurtovic
4092cbc0f6
Keep all workers' backgrounds in sync, and ensure they update at 00:00 UTC.
il y a 8 ans
Ben Kurtovic
1327f57404
Fix backgrounds when the image has been moved.
il y a 9 ans
Ben Kurtovic
6eed95c761
Use a global cache instead of the request-specific one.
il y a 9 ans
Ben Kurtovic
ddcf2a8963
Store what was previously in SQL tables in flask.g.
il y a 9 ans
Ben Kurtovic
9a25f97831
Connection pooling; cleanup.
il y a 10 ans
Ben Kurtovic
ed5af0eaf8
Whoops, no context gets passed.
il y a 10 ans
Ben Kurtovic
56a79cc8d1
More cleanup; cookie fixes, Flask integration.
il y a 10 ans
Ben Kurtovic
6acb88a156
Logic was wrong for selecting the image width.
il y a 10 ans
Ben Kurtovic
8027179e60
Update more references.
il y a 10 ans
Ben Kurtovic
20259a4414
Remove some references to the Toolserver.
il y a 10 ans
Ben Kurtovic
04c7092756
width should be a string
il y a 12 ans
Ben Kurtovic
dc96cf1a2e
Forgot to pass the silly context thing.
il y a 12 ans
Ben Kurtovic
3de23628b7
Switching a bit of code from client-side to server-side.
- All POTD logic is now in Python instead of JS.
- Removed EarwigBackgroundCache cookie (now stored in a new `background` table in the database).
- Added EarwigScreenCache cookie
- Increase cookie life from a year to three.
il y a 12 ans