CodeForPhilly / CodeForPhilly/stately

Form submission should save number fields as numbers in JSON

Abierto
#16 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
22
Forks
5
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.