aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/utils.py
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2021-03-24 13:22:57 +0800
committerGravatar kosayoda <[email protected]>2021-03-24 13:22:57 +0800
commit731ff9482ecae7b5293bcfe1512389efd7f17571 (patch)
tree4bd632610c708834745057c54a05cd6ee2a0d4a8 /pydis_site/apps/content/utils.py
parentUpdate guide to reflect changes in events app. (diff)
Improve phrasing and wording of documentation.
Diffstat (limited to 'pydis_site/apps/content/utils.py')
-rw-r--r--pydis_site/apps/content/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/content/utils.py b/pydis_site/apps/content/utils.py
index 17d7db81..6cb15581 100644
--- a/pydis_site/apps/content/utils.py
+++ b/pydis_site/apps/content/utils.py
@@ -15,7 +15,7 @@ def get_category(path: Path) -> Dict[str, str]:
def get_categories(path: Path) -> Dict[str, Dict]:
- """Get all categories information."""
+ """Get information for all categories."""
categories = {}
for name in path.iterdir():
@@ -38,7 +38,7 @@ def get_pages(path: Path) -> Dict[str, Dict]:
def get_page(path: Path) -> Dict[str, Union[str, Dict]]:
- """Get one specific page. When category is specified, get it from there."""
+ """Get one specific page."""
if not path.exists() or not path.is_file():
raise Http404("Page not found.")