mirror of
https://github.com/cupcakearmy/confluence-markdown-sync.git
synced 2026-04-09 23:27:12 +00:00
Compare commits
2 Commits
v1.0.3
...
218c7be69c
| Author | SHA1 | Date | |
|---|---|---|---|
| 218c7be69c | |||
|
|
8fd0e574d2 |
@@ -33,7 +33,9 @@ if '://' in base_url: # It's a full URL
|
|||||||
else: # It's a subdomain
|
else: # It's a subdomain
|
||||||
url = f"https://{base_url}.atlassian.net/wiki/rest/api/content/{envs['to']}"
|
url = f"https://{base_url}.atlassian.net/wiki/rest/api/content/{envs['to']}"
|
||||||
|
|
||||||
current = requests.get(url, auth=(envs['user'], envs['token'])).json()
|
response = requests.get(url, auth=(envs['user'], envs['token']))
|
||||||
|
response.raise_for_status()
|
||||||
|
current = response.json()
|
||||||
|
|
||||||
html = markdown(md, extensions=[GithubFlavoredMarkdownExtension()])
|
html = markdown(md, extensions=[GithubFlavoredMarkdownExtension()])
|
||||||
content = {
|
content = {
|
||||||
|
|||||||
Reference in New Issue
Block a user