Skip to content

Commit

Permalink
Merge pull request #45 from Normo/44-fix-foreign-key-constraint-viola…
Browse files Browse the repository at this point in the history
…tion

fix: remove related software hihlights
  • Loading branch information
Normo authored Nov 23, 2023
2 parents 3b93eec + e0c2570 commit 6cadbbe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,13 @@ async def remove_spotlight(client, spotlight):
.execute()
)

res = (
await client.from_("software_highlight")
.delete()
.eq("software", software_id)
.execute()
)

logging.info("Remove %s", name)

res = await client.from_("software").delete().eq("slug", slug).execute()
Expand Down

0 comments on commit 6cadbbe

Please sign in to comment.