CodeForPhilly / CodeForPhilly/stately
Form submission should save number fields as numbers in JSON
- Dominant language
- Python
- Stars
- 22
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
In order for this event handler to work, `cost`'s type must be an integer.
``` python
if data.cost >= 500:
change_state('Awaiting CFO Approval')
```
Which means the form data grabber should recongise the `` and save it as a number. This is like the one time when JavaScript is easier :P I assume there's no way to enable loose typing in event handlers, @mjumbewu, but worth asking..
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the form data grabber and the handling for . Verify that submitted numeric values are stored as numbers in JSON and that the shown Python comparison with data.cost works as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100