diff options
author | 2022-03-08 15:54:34 +0100 | |
---|---|---|
committer | 2022-03-08 15:55:21 +0100 | |
commit | 19c6e7b66cf5078a198f4a70fec38d66dd029564 (patch) | |
tree | 0fae491f49d4c4643c8ed13b776b37b6ecbc3b19 /pydis_site/apps/api/viewsets | |
parent | Add support for storing AoC related data in site (diff) |
Enhance comments and table structure in AoC related modules
- Set the user reference to be a OneToOne relation, on tables: AocCompletionistBlock and AocAccountLink.
Diffstat (limited to 'pydis_site/apps/api/viewsets')
-rw-r--r-- | pydis_site/apps/api/viewsets/bot/aoc_completionist_block.py | 4 | ||||
-rw-r--r-- | pydis_site/apps/api/viewsets/bot/aoc_link.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pydis_site/apps/api/viewsets/bot/aoc_completionist_block.py b/pydis_site/apps/api/viewsets/bot/aoc_completionist_block.py index 53bcb546..c5568129 100644 --- a/pydis_site/apps/api/viewsets/bot/aoc_completionist_block.py +++ b/pydis_site/apps/api/viewsets/bot/aoc_completionist_block.py @@ -47,8 +47,8 @@ class AocCompletionistBlockViewSet( #### Request body >>> { - ... 'user': int, - ... 'is_blocked': bool + ... 'user': int, + ... 'is_blocked': bool ... } #### Status codes diff --git a/pydis_site/apps/api/viewsets/bot/aoc_link.py b/pydis_site/apps/api/viewsets/bot/aoc_link.py index b5b5420e..263b548d 100644 --- a/pydis_site/apps/api/viewsets/bot/aoc_link.py +++ b/pydis_site/apps/api/viewsets/bot/aoc_link.py @@ -47,8 +47,8 @@ class AocAccountLinkViewSet( #### Request body >>> { - ... 'user': int, - ... 'aoc_username': str + ... 'user': int, + ... 'aoc_username': str ... } #### Status codes |