LeanderMcL / spoon-wizards

The task tracker for spoonies
0 stars 0 forks source link

Make the backend consistently use numeric values for spoon costs #72

Open LeanderMcL opened 3 years ago

LeanderMcL commented 3 years ago

It's getting confusing which I'm using - word values or numeric values - at different times. The backend should consistently use numeric values for parsing, computing and storing data, and only convert to the word values when it's time to show something to the user in the task or archive list. So we should be converting once, from words to numbers, when we grab data from the new task form, and converting back once, from numbers to words, when we display data in the task list or archive.

So go through and fix so I'm consistently using the numeric values in the backend.

LeanderMcL commented 3 years ago

This is going to have several sub-issues which I'll note here as I create them.

LeanderMcL commented 3 years ago

Sub-issue 1: #80 Sub-issue 2: #81

I think this might be it for updating the backend!