From 8bfecb79a746c66482d9d11be9d7d9bb96d073d9 Mon Sep 17 00:00:00 2001 From: Mathieu Strypsteen Date: Thu, 23 May 2024 21:30:01 +0200 Subject: [PATCH] Add admin --- backend/fill_database_mock.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/fill_database_mock.py b/backend/fill_database_mock.py index dff9e70d..cd3df673 100644 --- a/backend/fill_database_mock.py +++ b/backend/fill_database_mock.py @@ -394,9 +394,11 @@ def fill_database_mock() -> None: admin1 = create_student(session, "Bart Coppens", "bart.coppens@ugent.be") admin2 = create_student(session, "Bart Mesuere", "bart.mesuere@ugent.be") admin3 = create_student(session, "Annick Van Daele", "annick.vandaele@ugent.be") + admin4 = create_student(session, "Charlotte Van Petegem", "charlotte.vanpetegem@ugent.be") modify_user_roles(session, admin1.id, [Role.STUDENT, Role.TEACHER, Role.ADMIN]) modify_user_roles(session, admin2.id, [Role.STUDENT, Role.TEACHER, Role.ADMIN]) modify_user_roles(session, admin3.id, [Role.STUDENT, Role.TEACHER, Role.ADMIN]) + modify_user_roles(session, admin4.id, [Role.STUDENT, Role.TEACHER, Role.ADMIN]) session.commit() session.close()