mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 23:55:46 +02:00
Sending schedules in discord, small fixes
This commit is contained in:
parent
14ccb42424
commit
13f7d03bbb
17 changed files with 354 additions and 135 deletions
|
|
@ -198,8 +198,8 @@ class UforaCourse(Base):
|
|||
code: str = Column(Text, nullable=False, unique=True)
|
||||
year: int = Column(Integer, nullable=False)
|
||||
compulsory: bool = Column(Boolean, server_default="1", nullable=False)
|
||||
role_id: Optional[int] = Column(Integer, nullable=True, unique=False)
|
||||
overarching_role_id: Optional[int] = Column(Integer, nullable=True, unique=False)
|
||||
role_id: Optional[int] = Column(BigInteger, nullable=True, unique=False)
|
||||
overarching_role_id: Optional[int] = Column(BigInteger, nullable=True, unique=False)
|
||||
log_announcements: bool = Column(Boolean, server_default="0", nullable=False)
|
||||
|
||||
announcements: list[UforaAnnouncement] = relationship(
|
||||
|
|
|
|||
|
|
@ -10,7 +10,14 @@ 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)
|
||||
modsim = UforaCourse(
|
||||
course_id=439235,
|
||||
code="C003786",
|
||||
name="Modelleren en Simuleren",
|
||||
year=3,
|
||||
compulsory=False,
|
||||
role_id=785577582561067028,
|
||||
)
|
||||
|
||||
session.add_all([modsim])
|
||||
await session.commit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue