CodeForPhilly / CodeForPhilly/stately
Form submission should save number fields as numbers in JSON
- Langage dominant
- Python
- Étoiles
- 22
- Forks
- 5
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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..
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- backend
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100