Fix retrieval of empty decks
This commit is contained in:
parent
78cb4b768b
commit
3f6e84317a
1 changed files with 2 additions and 2 deletions
|
@ -479,8 +479,8 @@ async def get_deck(
|
|||
'quantity', "deck_list"."quantity"
|
||||
))) AS "cards"
|
||||
FROM "decks"
|
||||
JOIN "deck_list" USING ("deck_id")
|
||||
JOIN "oracle_latest" USING ("oracle_id")
|
||||
LEFT JOIN "deck_list" USING ("deck_id")
|
||||
LEFT JOIN "oracle_latest" USING ("oracle_id")
|
||||
WHERE "decks"."deck_id" = %(deck_id)s
|
||||
GROUP BY "decks"."deck_id"
|
||||
, "decks"."name"
|
||||
|
|
Loading…
Reference in a new issue