Skip to content

Commit

Permalink
fixed bug on sample deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Jul 11, 2024
1 parent 76a9fb3 commit 7cad0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pepdbagent/modules/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def delete(
parent_mapping = sample_mapping.parent_mapping
child_mapping = sample_mapping.child_mapping
session.delete(sample_mapping)
if parent_mapping:
if child_mapping:
child_mapping.parent_mapping = parent_mapping
project_mapping.number_of_samples -= 1
project_mapping.last_update_date = datetime.datetime.now(datetime.timezone.utc)
Expand Down

0 comments on commit 7cad0be

Please sign in to comment.