TUK-3oon / hello-tarot-BE

hello-tarot project BackEnd
0 stars 1 forks source link

fix backend api #16

Closed hellojunho closed 3 months ago

hellojunho commented 3 months ago

When accessing the game/end/ url, game_all_select_card_id requires 3 identifiable values, but we only defined 1 in model. We change the structure of model, include the 3 card_ids selected by the user in json format in game_all_select_card_id in the game table, and use json.loads() in views.py to parse the values.