File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments