mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 23:55:46 +02:00
Easter eggs
This commit is contained in:
parent
2638c5a3c4
commit
181118aa1d
7 changed files with 151 additions and 13 deletions
12
database/crud/easter_eggs.py
Normal file
12
database/crud/easter_eggs.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from sqlalchemy import select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from database.schemas import EasterEgg
|
||||
|
||||
__all__ = ["get_all_easter_eggs"]
|
||||
|
||||
|
||||
async def get_all_easter_eggs(session: AsyncSession) -> list[EasterEgg]:
|
||||
"""Return a list of all easter eggs"""
|
||||
statement = select(EasterEgg)
|
||||
return (await session.execute(statement)).scalars().all()
|
||||
Loading…
Add table
Add a link
Reference in a new issue