| Commit message (Collapse) | Author | Age | Lines |
| ... | |
| | |\ \ \
| |/ / /
|/| | | |
|
| |\ \ \ \
| | | | |
| | | | | |
Line Ending Fix
|
| |/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
Added .gitattributes to prevent Windows users from accidentally cloning the repo and getting incorrect line endings
Also adjusting the shebang for the migrate_and_serve.sh to prevent another Windows related bug
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The most recent infraction a user has is usually the most relevant to
us. This PR aims to make our life easier by sorting the infractions by
their `inserted_at` date, with the most recent insertion date first.
Note: The `id` is not entirely in chronological order, because we did
not import historical infractions in chronological order. That's why
the `inserted_at` field is specified instead of the `id` field.
|
| | | |
| | |
| | | |
Co-Authored-By: Mark <[email protected]>
|
| | | |
| | |
| | |
| | | |
Co-Authored-By: Mark <[email protected]>
Co-Authored-By: Sebastiaan Zeeff <[email protected]>
|
| | | |
| | |
| | |
| | | |
Synchronize output of `pipenv run lint` and `python -m flake8` for the current project structure
|
| | | | |
|
| | | | |
|
| | |/
|/| |
|
| |/ |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |\
| |
| | |
Add missing migrations file for the deleted messages model
|
| |/
|
|
|
|
| |
A change has been committed to the deleted messages model,
namely a default ordering, but it was not reflected in a
migration. This commit amends that oversight.
|
| |\
| |
| | |
Fix misconfigured flake8 so docstrings are properly linted
|
| | |
| |
| | |
Relint
|
| |\ \
| |/
|/| |
Deleted Messages Front-End
|
| | | |
|
| | |
| |
| |
| | |
code suggestion
|
| | |
| |
| | |
Co-Authored-By: Johannes Christ <[email protected]>
|
| | | |
|
| | |
| |
| |
| | |
in dockerignore
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
Tests include:
- Properly escaping html;
- Correct messages have been passed to templates;
- Embeds are both rendered by the template.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
- Adding support for embeds to both the template and the css;
- Adding Discord fonts to create a Discord-realistic rendering;
- Adding Discord color int to html hex filter for use in templates;
- Removing unnecessary int -> hex property from role model (see previous point);
- Adding support to compute timestamp from snowflake int in the message model;
- Forcing the order of deleted messages list view to snowflake `id` to guarantee chronological order.
|
| | | |
|
| | | |
|
| |\ \
| | |
| | | |
Update contrib doc for allowing edits from maintainers
|
| | | |
| | |
| | | |
Relock
|
| | | | |
|
| |/ / |
|