Skip to content

Commit

Permalink
fix: cascade
Browse files Browse the repository at this point in the history
  • Loading branch information
xnought committed Dec 2, 2023
1 parent 0adbd0a commit 413c229
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions backend/src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,6 @@ def delete_protein_entry(protein_name: str):
except Exception as e:
log.error(e)

# remove species if it has no more proteins
# note that it automatically removes the species from the join table
# don't do this quite yet, since we want to keep our three hard coded species
# try:
# db.execute(
# """DELETE FROM species
# WHERE id NOT IN (SELECT species_id FROM species_proteins)"""
# )
# except Exception as e:
# log.error(e)


# None return means success
@app.post("/protein-upload", response_model=UploadError | None)
Expand Down

0 comments on commit 413c229

Please sign in to comment.