Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AaDalal committed Oct 13, 2023
1 parent 58e2adc commit a4048c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/review/management/commands/iscimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def handle(self, *args, **kwargs):

for semester in semesters:
print(f"Loading {semester}...")
with transaction.atomic(): # Only commit changes if the whole script succeeds
with transaction.atomic(): # Only commit changes if all imports for the semester succeed
to_delete = Review.objects.filter(section__course__semester=semester)
delete_count = to_delete.count()
if delete_count > 0:
Expand Down

0 comments on commit a4048c5

Please sign in to comment.