mirror of
https://github.com/ae-utbm/sith.git
synced 2026-07-02 20:58:36 +00:00
wip: update pedagogy
This commit is contained in:
+2
@@ -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)
|
||||
Reference in New Issue
Block a user