Ben Kurtovic
23663afbe2
Fix background URL generation
před 2 roky
Ben Kurtovic
4092cbc0f6
Keep all workers' backgrounds in sync, and ensure they update at 00:00 UTC.
před 8 roky
Ben Kurtovic
1327f57404
Fix backgrounds when the image has been moved.
před 9 roky
Ben Kurtovic
6eed95c761
Use a global cache instead of the request-specific one.
před 9 roky
Ben Kurtovic
ddcf2a8963
Store what was previously in SQL tables in flask.g.
před 9 roky
Ben Kurtovic
9a25f97831
Connection pooling; cleanup.
před 10 roky
Ben Kurtovic
ed5af0eaf8
Whoops, no context gets passed.
před 10 roky
Ben Kurtovic
56a79cc8d1
More cleanup; cookie fixes, Flask integration.
před 10 roky
Ben Kurtovic
6acb88a156
Logic was wrong for selecting the image width.
před 10 roky
Ben Kurtovic
8027179e60
Update more references.
před 10 roky
Ben Kurtovic
20259a4414
Remove some references to the Toolserver.
před 10 roky
Ben Kurtovic
04c7092756
width should be a string
před 12 roky
Ben Kurtovic
dc96cf1a2e
Forgot to pass the silly context thing.
před 12 roky
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.
před 12 roky