Skip to content

Commit

Permalink
Replace repo with schema field in delete_archive method
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatcherK committed Aug 16, 2023
1 parent ca33092 commit a7dd9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def delete_archive(id):
frozen_data = FrozenData.objects.get(pk=id)
table_name = frozen_data.frozen_db_table
# Delete from sources table and operation steps
frozen_source = Source.objects.filter(repo='archives', active_mirror_name=table_name)
frozen_source = Source.objects.filter(schema='archives', active_mirror_name=table_name)
operation_step_qs = OperationStep.objects.filter(source_id__in=frozen_source)
operation = Operation.objects.filter(pk__in=operation_step_qs.values_list('operation_id', flat=True))
operation.delete()
Expand Down

0 comments on commit a7dd9e7

Please sign in to comment.