mirror of https://github.com/stijndcl/didier
Add extra course for Machine Learning
parent
654dcb228d
commit
a0c2cee857
|
@ -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,
|
||||
|
|
|
@ -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()
|
Loading…
Reference in New Issue