Skip to content

Commit

Permalink
rm redundant var, re #10781
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Apr 19, 2024
1 parent 29141f8 commit be62675
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arches/app/etl_modules/bulk_data_deletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,8 @@ def delete_resources(self, userid, loadid, graphid, resourceids, verbose=False):
elif resourceids:
resources = Resource.objects.filter(pk__in=resourceids)
if verbose is True:
resources_to_delete_ct = resources.count()
deleted_count = resources_to_delete_ct
bar = pyprind.ProgBar(resources_to_delete_ct)
deleted_count = resources.count()
bar = pyprind.ProgBar(deleted_count)
for resource in resources.iterator(chunk_size=2000):
resource.delete(user=user, index=False, transaction_id=loadid)
if verbose is True:
Expand Down

0 comments on commit be62675

Please sign in to comment.