wip: update pedagogy

This commit is contained in:
imperosol
2026-07-02 19:21:34 +02:00
parent 1c277365ed
commit 53e454a04a
4 changed files with 109 additions and 54 deletions
@@ -19,6 +19,8 @@ class Command(BaseCommand):
"This may take a few minutes to complete."
)
for ue in client.fetch_ues():
# this is a N+1 query, but it isn't a problem,
# as fetching a UE from the UTBM API is taking most of the time anyway
db_ue = UE.objects.filter(code=ue.code).first()
if db_ue is None:
db_ue = UE(code=ue.code, author=root_user)