mirror of https://github.com/stijndcl/didier
13 lines
373 B
Python
13 lines
373 B
Python
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 list((await session.execute(statement)).scalars().all())
|