Skip to content

Commit

Permalink
Update __main__.py
Browse files Browse the repository at this point in the history
Remove dangerous possibility to clean whole space
  • Loading branch information
stevengoossensB authored Oct 18, 2023
1 parent ded229e commit 79a7a53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions md2cf/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,14 @@ def main():
pages_to_delete = []
if args.parent_id:
pages_to_delete = confluence.get_all_pages_from_parent_id(args.parent_id)

# Don't implement cleaning of whole space
# else:
# pages_to_delete = confluence.get_all_pages_from_space(args.space)

for page in pages_to_delete:
try:
confluence.delete_page(page.id)
confluence.delete_page(page)
console.log(f"Deleted page {page.title}")
except HTTPError as e:
error_console.log(
Expand Down

0 comments on commit 79a7a53

Please sign in to comment.