CodeForPhilly / CodeForPhilly/stately

Form submission should save number fields as numbers in JSON

Aperta
#16 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
22
Fork
5
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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..

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.