| Commit message (Collapse) | Author | Lines |
|
|
|
|
|
The bug was caused by a naive approach to caching and retrieving the data.
This commit rectifies this by making the following changes:
- We will now cache for 1 hour instead of 10 minutes
- If the data is stale but API is rate limited, return cache, not crash.
- If the cache doesn't exist and API is rate limited, return dummy data,
and try again in 10 minutes.
This will prevent all crashes, and should still have more or less the same user experience.
|
|
|
|
|
|
|
|
Adding django.pythondiscord.com and django.api.pythondiscord.com
to ALLOWED_HOSTS to allow us to run Djangoify and migrate
the infraction data.
|
|
|
|
|
|
|
|
This adds the Monokai, Friendly, and Darcula themes to this
repo. It leaves Darcula as the active theme. This can very
easily be changed later on by altering wiki/base.html
Resolves #243.
|
|
This will allow us to edit durations using the PATCH method,
which the bot implements already but which was overlooked
when this viewset was written.
|
|
|