Remove interest-satisfying atomic()

This commit is contained in:
Tanner Collin 2023-03-01 17:59:19 +00:00
parent 0f5dbee24b
commit f5ff777aa9

View File

@ -313,7 +313,6 @@ class SessionViewSet(Base, List, Retrieve, Create, Update):
logging.info('Session is in the past or too soon, not sending interest emails.') logging.info('Session is in the past or too soon, not sending interest emails.')
return return
with transaction.atomic():
interests = models.Interest.objects.filter( interests = models.Interest.objects.filter(
course=session.course, course=session.course,
satisfied_by__isnull=True, satisfied_by__isnull=True,