aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2022-09-18 18:44:33 +0100
committerGravatar Amrou Bellalouna <[email protected]>2022-09-18 18:44:33 +0100
commitf07f03abd53789062045afb027ef2d5ecfd63f11 (patch)
treed948e350218ea8b283637c5071ad6c4b5e4b6462
parentadd suggested keywords (diff)
make docstring more explicit about the returned content
-rw-r--r--pydis_site/apps/api/views.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pydis_site/apps/api/views.py b/pydis_site/apps/api/views.py
index 836f11ce..f76a78ff 100644
--- a/pydis_site/apps/api/views.py
+++ b/pydis_site/apps/api/views.py
@@ -100,7 +100,12 @@ class RulesView(APIView):
# `format` here is the result format, we have a link format here instead.
def get(self, request, format=None): # noqa: D102,ANN001,ANN201
- """Returns a list of our community rules coupled with their keywords."""
+ """
+ Returns a list of our community rules coupled with their keywords.
+
+ Each item in the returned list is a tuple with the rule as first item
+ and a list of keywords that match that rules as second item.
+ """
link_format = request.query_params.get('link_format', 'md')
if link_format not in ('html', 'md'):
raise ParseError(