aboutsummaryrefslogtreecommitdiffstats
path: root/LICENSE (unfollow)
Commit message (Collapse)AuthorLines
2021-09-10Update mock GitHub API responseGravatar Joe Banks-1/+1
Fixes breaking tests
2021-09-10Update repository selection on home pageGravatar Joe Banks-1/+1
In accordance with a poll in #dev-contrib, King Arthur becomes the 6th repository featured on the Python Discord homepage.
2021-09-07Update embed description length to 4096Gravatar mbaruh-2/+2
2021-09-07Remove explicit check for db port, as it's optionalGravatar Chris Lovering-2/+2
We also do not specifiy it in prod, so this crash looped when trying to deploy
2021-09-07Add print statement to log when metricity is being initialisedGravatar Chris Lovering-0/+2
2021-09-07Correctly attribute SO author for SQL functionGravatar Chris Lovering-0/+4
2021-09-07Raise a ValueError with a useful message for invalid db urlsGravatar Chris Lovering-1/+3
2021-09-07Remove unnecessary variableGravatar Chris Lovering-3/+2
Co-authored-by: Vivaan Verma <[email protected]>
2021-09-07Fix spelling of `initialising` in manage.pyGravatar ChrisJL-2/+2
Co-authored-by: Vivaan Verma <[email protected]>
2021-09-07Create and populate metricity in a single connectionGravatar Chris Lovering-25/+31
2021-09-07Close db conns when finishedGravatar Chris Lovering-0/+2
psycopg2's context managers don't do this for us, so we need to close conns manually.
2021-09-07Move db url validation to cls methodGravatar Chris Lovering-12/+21
This standardises the way we validate db urls, and ensures each place that uses a db url manually properly validates it first.
2021-09-06Use context manager for file openGravatar Chris Lovering-3/+2
Also remove a useless print statement to reduce noise
2021-09-06Initialise metricity at runtimeGravatar Chris Lovering-31/+77
Currently the bot cannot start in dev as the site errors, saying that metricity doesn't exist. Previously this note existing was fine, unless you needed to use metricity data. With the recent addition of django-prometheus, metricity is now required on boot. This PR moves the init of metricity from a docker-compose volume, into running of the site. This means that external projects using site, that don't have access to the init.sql file to mount a volume, now also init metricity.
2021-09-04Pin platform in DockerfileGravatar Chris Lovering-1/+1
Some of our deps don't have wheels for atm processors. With Mac's M1 chips becomming more common, we should make it easier for those users to build our environments.
2021-09-04Correct import orderGravatar Joe Banks-1/+1
2021-09-04Add pod IPs to allowed hostsGravatar Joe Banks-0/+3
2021-09-04Update in accordance with python-discord/kubernetes#95Gravatar Joe Banks-1/+1
2021-09-04Explicitly set gunicorn config argumentGravatar Joe Banks-0/+1
2021-09-03Ignore gunicorn configuration from flake8Gravatar Joe Banks-3/+8