From 36ec4ee3393b46f16dd14a98d85b4bf3ea412957 Mon Sep 17 00:00:00 2001 From: simonwt Date: Tue, 31 Mar 2026 12:12:43 +0100 Subject: [PATCH] Remove print statements --- jobs/branch/get.py | 1 - jobs/comment/create.py | 1 - jobs/comment/listtbypostid.py | 1 - jobs/post/create.py | 1 - jobs/post/get.py | 1 - jobs/post/listbybranch.py | 1 - jobs/post/listbyuserprofile.py | 1 - jobs/userprofile/get.py | 1 - 8 files changed, 8 deletions(-) diff --git a/jobs/branch/get.py b/jobs/branch/get.py index b8695a8..edc6987 100644 --- a/jobs/branch/get.py +++ b/jobs/branch/get.py @@ -7,6 +7,5 @@ def get(API, branch_slug: str,) -> dict: Returns: dict: The branch/subwiki data. """ - print(f"Fetching branch/subwiki for user slug: {branch_slug}") branch_data = API.make_request("GET", "content", f"subwiki/{branch_slug}", authenticate=True) return branch_data \ No newline at end of file diff --git a/jobs/comment/create.py b/jobs/comment/create.py index 719d108..da34d9f 100644 --- a/jobs/comment/create.py +++ b/jobs/comment/create.py @@ -8,6 +8,5 @@ def create(API, payload: dict) -> dict: Returns: dict: The comment data. """ - print(f"Creating a new comment with payload: {payload}") comment_data = API.make_request("POST", "content", "commentcreate", data=payload, authenticate=True) return comment_data \ No newline at end of file diff --git a/jobs/comment/listtbypostid.py b/jobs/comment/listtbypostid.py index bef5ba5..7c0430a 100644 --- a/jobs/comment/listtbypostid.py +++ b/jobs/comment/listtbypostid.py @@ -7,6 +7,5 @@ def listtbypostid(API, post_id: str,) -> dict: Returns: dict: The list of comments for the post. """ - print(f"Fetching comments for post ID: {post_id}") comment_list = API.make_request("GET", "content", f"comment/bypostid/{post_id}", authenticate=True) return comment_list \ No newline at end of file diff --git a/jobs/post/create.py b/jobs/post/create.py index 3f823ed..1a32b1a 100644 --- a/jobs/post/create.py +++ b/jobs/post/create.py @@ -8,6 +8,5 @@ def create(API, payload: dict) -> dict: Returns: dict: The post data. """ - print(f"Creating a new post with payload: {payload}") post_data = API.make_request("POST", "content", "post", data=payload, authenticate=True) return post_data \ No newline at end of file diff --git a/jobs/post/get.py b/jobs/post/get.py index e8c27fd..ffe7312 100644 --- a/jobs/post/get.py +++ b/jobs/post/get.py @@ -8,6 +8,5 @@ def get(API, post_slug: str,) -> dict: Returns: dict: The post data. """ - print(f"Fetching post from slug: {post_slug}") post_data = API.make_request("GET", "content", f"post/id/{post_slug}", authenticate=True) return post_data \ No newline at end of file diff --git a/jobs/post/listbybranch.py b/jobs/post/listbybranch.py index 29fd893..b455cf6 100644 --- a/jobs/post/listbybranch.py +++ b/jobs/post/listbybranch.py @@ -7,6 +7,5 @@ def listbybranch(API, branch_slug: str,) -> dict: Returns: dict: The list of posts for the branch. """ - print(f"Fetching posts for branch: {branch_slug}") post_list = API.make_request("GET", "content", f"post/ref-subwiki/{branch_slug}", authenticate=True) return post_list \ No newline at end of file diff --git a/jobs/post/listbyuserprofile.py b/jobs/post/listbyuserprofile.py index 40a8acb..f339781 100644 --- a/jobs/post/listbyuserprofile.py +++ b/jobs/post/listbyuserprofile.py @@ -7,7 +7,6 @@ def listbyuserprofile(API, user_slug: str,) -> dict: Returns: dict: The list of posts for the user profile. """ - print(f"Fetching posts for user profile: {user_slug}") # Note there is actually a reference to `/branch` in the API url # and it should be considered for removal because that's confusing post_list = API.make_request("GET", "content", f"post/ref-userprofile/branch/{user_slug}", authenticate=True) diff --git a/jobs/userprofile/get.py b/jobs/userprofile/get.py index 183efe4..f293745 100644 --- a/jobs/userprofile/get.py +++ b/jobs/userprofile/get.py @@ -7,6 +7,5 @@ def get(API, user_slug: str,) -> dict: Returns: dict: The user profile data. """ - print(f"Fetching profile for user slug: {user_slug}") profile_data = API.make_request("GET", "content", f"userprofile/{user_slug}", authenticate=True) return profile_data \ No newline at end of file