aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2022-09-18 22:18:50 +0100
committerGravatar Amrou Bellalouna <[email protected]>2022-09-18 22:18:50 +0100
commit7fd81a80049763f1dc71815da27d65ce4344a191 (patch)
treef25d7ede11f6d4cae7afce6cad8c8860ef764f66 /pydis_site
parentrestrict the RulesView docstrings to just what it does (diff)
replace parenthesis with square brackets since tuples are serialized are lists
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/apps/api/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pydis_site/apps/api/views.py b/pydis_site/apps/api/views.py
index 9e5ad73c..34167a38 100644
--- a/pydis_site/apps/api/views.py
+++ b/pydis_site/apps/api/views.py
@@ -42,9 +42,9 @@ class RulesView(APIView):
Example response:
>>> [
- ... ("Eat candy.", ["candy", "sweets"]),
- ... ("Wake up at 4 AM.", ["wake_up", "early", "early_bird"]),
- ... ("Take your medicine.", ["medicine", "health"])
+ ... ["Eat candy.", ["candy", "sweets"]],
+ ... ["Wake up at 4 AM.", ["wake_up", "early", "early_bird"]],
+ ... ["Take your medicine.", ["medicine", "health"]]
... ]
Since some of the the rules require links, this view