CodeForPhilly / CodeForPhilly/stately
context.events should use dot notation
Abierto
api
- Lenguaje dominante
- Python
- Estrellas
- 22
- Forks
- 5
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Ideally we'd be able to do something like this:
``` python
event_names = [event.action.name for event in events]
if 'Approve Taxes' in event_names and 'Approve Parking' in event_names:
change_state('Approved')
```
But currently we have to use:
``` python
event_names = [event['action']['name'] for event in events]
```
Not a huge deal, just easier to write.
Related to #20
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.