Open Soyokaze-42 opened 6 months ago
@follindown I just updated the load_cards script - it isn't working with the Promises of God because it has the text column where the other sheets do not have it. It now loads the Spanish, too.
I think we can close this once all the sheets are in the same format.
Are you asking me to change the formatting on the Promises of God? Will hiding the column work or does it need to be deleted or moved to the end?
Will the category be added to the usercard?
No, the category is on the card (that has a relationship with the usercard, so you can get it when you need it). Are you getting it from the rest api? I'm pretty sure it is card__category from that.
At this endpoint: http://127.0.0.1:8000/en/api/usercards/
I only get the following.
{
"count": 200,
"next": "http://127.0.0.1:8000/en/api/usercards/?page=2",
"previous": null,
"results": [
{
"id": 201,
"card": "God of all Comfort",
"usercardnote_set": [],
"answered": false,
"hidden": false,
"in_prayer_deck": false
},
{
"id": 202,
"card": "Jehovah - Rapha (the Lord our Healer)",
"usercardnote_set": [],
"answered": false,
"hidden": false,
"in_prayer_deck": false
},
...
}
Should I use a different endpoint?
I don't get the scripture reference at that endpoint either.
I'm wrong, it isn't there in the rest api. It can be, though.
I'd like to have the category and the scripture reference.
@kenancasey I just added them to the serializer in the new_schema_drf branch
I also changed "card" to "title" to be more in line with everything else.
Perfect. Thank you!
As a user I want the following prayer categories available so I can pray more effectively.
Names of God God Is... Names of Jesus Names of the HS In Christ Promises of God