diff --git a/tutor/database.py b/tutor/database.py index 83f3dc5..558f7a4 100644 --- a/tutor/database.py +++ b/tutor/database.py @@ -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"