CodeForPhilly / CodeForPhilly/stately
context.events should use dot notation
Open
api
- Dominant language
- Python
- Stars
- 22
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.