mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 23:55:46 +02:00
Parsing of schedules
This commit is contained in:
parent
8fea65e4ad
commit
14ccb42424
10 changed files with 228 additions and 20 deletions
16
database/scripts/debug_add_courses.py
Normal file
16
database/scripts/debug_add_courses.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from database.engine import DBSession
|
||||
from database.schemas import UforaCourse
|
||||
|
||||
__all__ = ["main"]
|
||||
|
||||
|
||||
async def main():
|
||||
"""Add debug Ufora courses"""
|
||||
session: AsyncSession
|
||||
async with DBSession() as session:
|
||||
modsim = UforaCourse(course_id=439235, code="C003786", name="Modelleren en Simuleren", year=3, compulsory=False)
|
||||
|
||||
session.add_all([modsim])
|
||||
await session.commit()
|
||||
Loading…
Add table
Add a link
Reference in a new issue