Remove negative limit
Legal for SQLite but not for Postgres 🤷
This commit is contained in:
parent
01e4c5e36b
commit
bf7039aa41
@ -116,7 +116,7 @@ def games_html(request: Request, db=Depends(get_db)):
|
|||||||
games = list_games(db=db)
|
games = list_games(db=db)
|
||||||
# TODO - a more "data-intensive application" implementation would fetch only the decks involved in the games for
|
# TODO - a more "data-intensive application" implementation would fetch only the decks involved in the games for
|
||||||
# this page
|
# this page
|
||||||
decks = crud.get_decks(db=db, limit=-1)
|
decks = crud.get_decks(db=db)
|
||||||
decks_by_id = {deck.id: deck for deck in decks}
|
decks_by_id = {deck.id: deck for deck in decks}
|
||||||
game_names = {game.id: _build_game_deck_names(game, decks_by_id) for game in games}
|
game_names = {game.id: _build_game_deck_names(game, decks_by_id) for game in games}
|
||||||
return jinja_templates.TemplateResponse(
|
return jinja_templates.TemplateResponse(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user