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