Add extra course for Machine Learning

pull/136/head
stijndcl 2022-09-27 18:34:07 +02:00
parent 654dcb228d
commit a0c2cee857
2 changed files with 22 additions and 1 deletions

View File

@ -215,7 +215,7 @@ async def main():
machine_learning = UforaCourse(
course_id=630807,
code="C003758",
name="Machine Learning",
name="Machine Learning (CS)",
year=4,
compulsory=True,
role_id=1023294041825235087,

View File

@ -0,0 +1,21 @@
from sqlalchemy.ext.asyncio import AsyncSession
from database.engine import DBSession
from database.schemas import UforaCourse
__all__ = ["main"]
async def main():
"""Add a missing Ufora course (Machine Learning - CSE)"""
session: AsyncSession
async with DBSession() as session:
mlcse = UforaCourse(
code="E061330",
name="Machine Learning (CSE)",
role_id=1024355572256092170,
overarching_role_id=1023300434800164914,
)
session.add(mlcse)
await session.commit()