From 991471f1da888007e8043ba7085d31890d42a82e Mon Sep 17 00:00:00 2001 From: Taimoor Ahmed Date: Wed, 12 Feb 2025 15:08:53 +0500 Subject: [PATCH] fix: get_user_threads api args The get_user_threads api was not accepting additional arguments and there the discussion xblock wasn't working with the forum service. This PR adds args and kwargs params to the api to avoid breakage. close #149 --- forum/api/threads.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/forum/api/threads.py b/forum/api/threads.py index 855213a..26159ca 100644 --- a/forum/api/threads.py +++ b/forum/api/threads.py @@ -359,6 +359,8 @@ def get_user_threads( user_id: Optional[str] = None, group_id: Optional[int] = None, group_ids: Optional[int] = None, + *args: Any, + **kwargs: Any, ) -> dict[str, Any]: """ Get the threads for the given thread_ids.