PrayTeam / scriptured-prayer

GNU Affero General Public License v3.0
1 stars 0 forks source link

MVP Prayer Categories #15

Open Soyokaze-42 opened 6 months ago

Soyokaze-42 commented 6 months ago

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

Soyokaze-42 commented 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.

follindown commented 6 months ago

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?

kenancasey commented 5 months ago

Will the category be added to the usercard?

Soyokaze-42 commented 5 months ago

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.

kenancasey commented 5 months ago

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?

kenancasey commented 5 months ago

I don't get the scripture reference at that endpoint either.

Soyokaze-42 commented 5 months ago

I'm wrong, it isn't there in the rest api. It can be, though.

kenancasey commented 5 months ago

I'd like to have the category and the scripture reference.

Soyokaze-42 commented 5 months ago

@kenancasey I just added them to the serializer in the new_schema_drf branch

Soyokaze-42 commented 5 months ago

I also changed "card" to "title" to be more in line with everything else.

kenancasey commented 5 months ago

Perfect. Thank you!