diff options
| author | 2022-09-18 22:18:50 +0100 | |
|---|---|---|
| committer | 2022-09-18 22:18:50 +0100 | |
| commit | 7fd81a80049763f1dc71815da27d65ce4344a191 (patch) | |
| tree | f25d7ede11f6d4cae7afce6cad8c8860ef764f66 /pydis_site/apps/api | |
| parent | restrict 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/apps/api')
| -rw-r--r-- | pydis_site/apps/api/views.py | 6 | 
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  |