Skip to content

Commit

Permalink
fix prunings
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennecallies committed Nov 18, 2024
1 parent 53ebf9e commit 653cde1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scraping/services/page_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
def delete_page(page: Page):
prunings = page.get_prunings()
page.delete()

if not prunings:
return

for pruning in prunings:
remove_pruning_if_orphan(pruning)

Expand Down

0 comments on commit 653cde1

Please sign in to comment.