Skip to content

Commit 073e595

Browse files
committed
Add docstrings
1 parent 4c99a9a commit 073e595

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

loading_sdk/sync_api/client.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,13 @@ def get_socials(self):
485485
return {"code": 200, "message": "OK", "data": data}
486486

487487
def get_total_thread_pages(self, thread_id):
488+
"""Returns total pages of a thread.
489+
490+
:param thread_id: Unique thread id
491+
:type thread_id: str
492+
:rtype: dict
493+
"""
494+
488495
response = self.get_thread(thread_id)
489496

490497
if response["code"] != 200:
@@ -497,6 +504,13 @@ def get_total_thread_pages(self, thread_id):
497504
return pages
498505

499506
def get_total_category_pages(self, category):
507+
"""Returns total pages of a forum category.
508+
509+
:param category: Category name. Can be games, other, or texts
510+
:type category: str
511+
:rtype: dict
512+
"""
513+
500514
if category not in FORUM_CATEGORIES:
501515
return {"code": 404, "message": "Invalid category", "data": None}
502516

0 commit comments

Comments
 (0)