Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factor out annotations to models #261

Open
fgregg opened this issue Nov 18, 2019 · 0 comments
Open

Factor out annotations to models #261

fgregg opened this issue Nov 18, 2019 · 0 comments

Comments

@fgregg
Copy link
Member

fgregg commented Nov 18, 2019

Councilmatic code has many places where it needs to compare dates and datetimes.

For good reasons, the opencivicdata models store dates and datetimes as strings. Currently, we deal with this by extensively using annotations to cast to real datetimes.

We should just do this casting one on saving or updating the Councilmatic models in the signal handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant