@@ -212,10 +212,9 @@ async def load_test_officers_data(db_session: AsyncSession):
212212 ))
213213 await db_session .commit ()
214214
215+ SYSADMIN_COMPUTING_ID = "gsa92"
215216async def load_sysadmin (db_session : AsyncSession ):
216217 # put your computing id here for testing purposes
217- SYSADMIN_COMPUTING_ID = "gsa92"
218-
219218 print (f"loading new sysadmin '{ SYSADMIN_COMPUTING_ID } '" )
220219 await create_user_session (db_session , f"temp_id_{ SYSADMIN_COMPUTING_ID } " , SYSADMIN_COMPUTING_ID )
221220 await create_new_officer_info (db_session , OfficerInfo (
@@ -232,28 +231,11 @@ async def load_sysadmin(db_session: AsyncSession):
232231 await create_new_officer_term (db_session , OfficerTerm (
233232 computing_id = SYSADMIN_COMPUTING_ID ,
234233
235- position = OfficerPosition .SYSTEM_ADMINISTRATOR ,
236- start_date = date .today () - timedelta (days = 365 ),
237- end_date = None ,
238-
239- nickname = "Gabe" ,
240- favourite_course_0 = "CMPT 379" ,
241- favourite_course_1 = "CMPT 295" ,
242-
243- favourite_pl_0 = "Rust" ,
244- favourite_pl_1 = "C" ,
245-
246- biography = "The systems are good o7" ,
247- photo_url = None ,
248- ))
249- await create_new_officer_term (db_session , OfficerTerm (
250- computing_id = SYSADMIN_COMPUTING_ID ,
251-
252234 position = OfficerPosition .FIRST_YEAR_REPRESENTATIVE ,
253235 start_date = date .today () - timedelta (days = (365 * 3 )),
254236 end_date = date .today () - timedelta (days = (365 * 2 )),
255237
256- nickname = "Gabe " ,
238+ nickname = "G1 " ,
257239 favourite_course_0 = "MACM 101" ,
258240 favourite_course_1 = "CMPT 125" ,
259241
@@ -270,7 +252,7 @@ async def load_sysadmin(db_session: AsyncSession):
270252 start_date = date .today () - timedelta (days = 365 ),
271253 end_date = None ,
272254
273- nickname = "Gabe " ,
255+ nickname = "G2 " ,
274256 favourite_course_0 = "CMPT 379" ,
275257 favourite_course_1 = "CMPT 295" ,
276258
@@ -280,6 +262,24 @@ async def load_sysadmin(db_session: AsyncSession):
280262 biography = "The systems are good o7" ,
281263 photo_url = None ,
282264 ))
265+ # a future term
266+ await create_new_officer_term (db_session , OfficerTerm (
267+ computing_id = SYSADMIN_COMPUTING_ID ,
268+
269+ position = OfficerPosition .DIRECTOR_OF_ARCHIVES ,
270+ start_date = date .today () + timedelta (days = 365 * 1 ),
271+ end_date = date .today () + timedelta (days = 365 * 2 ),
272+
273+ nickname = "G3" ,
274+ favourite_course_0 = "MACM 102" ,
275+ favourite_course_1 = "CMPT 127" ,
276+
277+ favourite_pl_0 = "C%" ,
278+ favourite_pl_1 = "C$$" ,
279+
280+ biography = "o hey fellow kids \n \n \n I will can newline .... !!" ,
281+ photo_url = None ,
282+ ))
283283 await db_session .commit ()
284284
285285async def async_main (sessionmanager ):
0 commit comments