mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Parse publication time of notifications
This commit is contained in:
parent
d75831f848
commit
000337107b
9 changed files with 43 additions and 5 deletions
|
|
@ -13,7 +13,7 @@ async def get_courses_with_announcements(session: AsyncSession) -> list[UforaCou
|
|||
|
||||
|
||||
async def create_new_announcement(
|
||||
session: AsyncSession, announcement_id: int, course: UforaCourse, publication_date: datetime
|
||||
session: AsyncSession, announcement_id: int, course: UforaCourse, publication_date: datetime.datetime
|
||||
) -> UforaAnnouncement:
|
||||
"""Add a new announcement to the database"""
|
||||
new_announcement = UforaAnnouncement(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue