From a4048c51b23826fd8c3d75a9dc346a2c3d7d4da7 Mon Sep 17 00:00:00 2001 From: AaDalal <57609353+AaDalal@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:38:05 -0400 Subject: [PATCH] Update comment --- backend/review/management/commands/iscimport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/review/management/commands/iscimport.py b/backend/review/management/commands/iscimport.py index 7086ac289..1fe93a0b8 100644 --- a/backend/review/management/commands/iscimport.py +++ b/backend/review/management/commands/iscimport.py @@ -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: