Skip to content

Commit

Permalink
Async
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoest committed Jan 10, 2025
1 parent cd7f30b commit 95c5c14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S1/waitinglists/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .helpers import enrol_and_check_overrides, send_moodle_find_user

import requests
from asyncio import run
from asyncio import create_task
from dotenv import load_dotenv
import os
from cachetools import cached, TTLCache
Expand Down Expand Up @@ -245,7 +245,7 @@ def update_attendance(request, session_id):
pass
check_modules(attendance.user.id)
if session.module.name == "Module 1":
run(enrol_and_check_overrides(attendance.user.username))
create_task(enrol_and_check_overrides(attendance.user.username))
elif attendance.attended == "ABS":
try:
waiting_list_entry = WaitingList.objects.get(
Expand Down

0 comments on commit 95c5c14

Please sign in to comment.