Remove print statements
This commit is contained in:
parent
d889fdff20
commit
36ec4ee339
8 changed files with 0 additions and 8 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue