Fix retrieval of empty decks

This commit is contained in:
Correl Roush 2023-03-04 00:46:27 -05:00
parent 78cb4b768b
commit 3f6e84317a

View file

@ -479,8 +479,8 @@ async def get_deck(
'quantity', "deck_list"."quantity" 'quantity', "deck_list"."quantity"
))) AS "cards" ))) AS "cards"
FROM "decks" FROM "decks"
JOIN "deck_list" USING ("deck_id") LEFT JOIN "deck_list" USING ("deck_id")
JOIN "oracle_latest" USING ("oracle_id") LEFT JOIN "oracle_latest" USING ("oracle_id")
WHERE "decks"."deck_id" = %(deck_id)s WHERE "decks"."deck_id" = %(deck_id)s
GROUP BY "decks"."deck_id" GROUP BY "decks"."deck_id"
, "decks"."name" , "decks"."name"