Final fix for atomic updates

This commit is contained in:
andrew committed 2023-09-25 17:57:13 -04:00
1 parent 3b1821035d
commit f6886b79d1
1 file changed
+1 -1
+1 -1
View File
@@ -375,7 +375,7 @@ def update_test(request, machine):
with transaction.atomic():
test = Test.objects.select_for_update().get(id=test.id)
test = Test.objects.select_for_update().get(id=test_id)
if test.finished or test.deleted:
return { 'stop' : True }