Skip to content

Commit

Permalink
removed f-strings, types and trailing spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
hyGeorg authored Oct 25, 2024
1 parent 11d26c6 commit 76d21be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions atlassian/confluence.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def page_exists(self, space, title, type=None):
else:
return False

def share_with_others(self,page_id:str, group:list, message:str):
def share_with_others(self,page_id, group, message):
"""
Notify members (currently only groups implemented) about something on that page
"""
Expand All @@ -150,10 +150,10 @@ def share_with_others(self,page_id:str, group:list, message:str):
"note": message
#"users":[]
}
r = self.post(url, json=params,headers={"contentType":"application/json; charset=utf-8"},advanced_mode=True,)
r = self.post(url, json=params,headers={"contentType":"application/json; charset=utf-8"},advanced_mode=True)
if r.status_code != 200:
raise Exception(f"failed sharing content {r.status_code}: {r.text}")
raise Exception("failed sharing content {code}: {reason}".format(code=r.status_code,reason=r.text))

def get_page_child_by_type(self, page_id, type="page", start=None, limit=None, expand=None):
"""
Provide content by type (page, blog, comment)
Expand Down

0 comments on commit 76d21be

Please sign in to comment.