Skip to content

Commit fa4a8dd

Browse files
committed
Merge branch 'master' into subdomains-to-query-paths
2 parents c998d47 + a5635f2 commit fa4a8dd

39 files changed

+559
-187
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Resource Suggestion
3+
about: Suggest a resource for the Python Discord resource index.
4+
title: 'Resource Suggestion: '
5+
labels: 'resource suggestion'
6+
assignees: 'swfarnsworth'
7+
---
8+
9+
**Resource name**
10+
11+
**Resource location**\
12+
Should be a link of some kind, either to the resource itself or (in the case of resources that must be purchased) an information page about it.
13+
14+
**Payment type**\
15+
Options are free, paid, and subscription. Combinations of these are allowed for special cases (like a limited free version).
16+
17+
**Why it should be included**\
18+
A brief explanation for why you think this resource is valuable.
19+
20+
**Potential limitations**\
21+
Is the resource easy to use? Does it contain good information but have poorly-written code? Is it outdated in some way? If so, explain why it should still be included.

.github/workflows/deploy.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,9 @@ jobs:
4444
site/deployment.yaml
4545
images: 'ghcr.io/python-discord/site:${{ steps.sha_tag.outputs.tag }}'
4646
kubectl-version: 'latest'
47+
48+
- name: Purge Cloudflare Edge Cache
49+
uses: jakejarvis/cloudflare-purge-action@master
50+
env:
51+
CLOUDFLARE_ZONE: 989c984a358bfcd1e9b9d188cc86c1df
52+
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ rethinkdb_data/
116116
# Node modules
117117
node_modules/
118118

119+
# User configuration
120+
docker-compose.override.yml
121+
119122
pip-wheel-metadata/
120123
staticfiles/
121124

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
version: "3.6"
1212
services:
1313
postgres:
14-
image: postgres:12-alpine
14+
image: postgres:13-alpine
1515
ports:
1616
- "127.0.0.1:7777:5432"
1717
environment:

docs/README.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/configuration.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/setup.md

Lines changed: 0 additions & 91 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 3.0.14 on 2021-06-18 21:14
2+
3+
import django.core.validators
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('api', '0069_documentationlink_validators'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='role',
16+
name='permissions',
17+
field=models.BigIntegerField(help_text='The integer value of the permission bitset of this role from Discord.', validators=[django.core.validators.MinValueValidator(limit_value=0, message='Role permissions cannot be negative.')]),
18+
),
19+
]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 3.0.14 on 2021-06-24 14:45
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('api', '0070_auto_20210618_2114'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='deletedmessage',
15+
name='content',
16+
field=models.CharField(blank=True, help_text='The content of this message, taken from Discord.', max_length=4000),
17+
),
18+
]

pydis_site/apps/api/models/bot/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Message(ModelReprMixin, models.Model):
4343
verbose_name="Channel ID"
4444
)
4545
content = models.CharField(
46-
max_length=2_000,
46+
max_length=4_000,
4747
help_text="The content of this message, taken from Discord.",
4848
blank=True
4949
)

0 commit comments

Comments
 (0)