File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717async def list_decks (
1818 decks_repository : DecksRepository = FromDI (DecksRepository ),
1919) -> schemas .Decks :
20- objects = await decks_repository .list ()
20+ objects = await decks_repository .get_many ()
2121 return typing .cast ("schemas.Decks" , {"items" : objects })
2222
2323
@@ -64,7 +64,7 @@ async def list_cards(
6464 deck_id : int ,
6565 cards_repository : CardsRepository = FromDI (CardsRepository ),
6666) -> schemas .Cards :
67- objects = await cards_repository .list (models .Card .deck_id == deck_id )
67+ objects = await cards_repository .get_many (models .Card .deck_id == deck_id )
6868 return typing .cast ("schemas.Cards" , {"items" : objects })
6969
7070
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ license = "MIT License"
1111dependencies = [
1212 " fastapi>=0.76" ,
1313 " lite-bootstrap[fastapi-all]" ,
14- " modern-di-fastapi>=2" ,
14+ " modern-di-fastapi>=2,<3 " ,
1515 " advanced-alchemy" ,
1616 " pydantic-settings" ,
1717 " granian[uvloop]" ,
You can’t perform that action at this time.
0 commit comments