nycmeshnet / meshdb

A convenient, stable, and sane database for tracking Members and Nodes for use with robots and humans
https://db.nycmesh.net
MIT License
8 stars 13 forks source link

Fix: import script crashes on datetime object #441

Closed Andrew-Dickinson closed 1 month ago

Andrew-Dickinson commented 1 month ago

It's unclear why these keep surfacing (#392 being the other recent example). But for some reason we didn't catch these earlier?

We definitely want date objects, not datetime ones, Django rejects datetime objects on date fields, idk why this ever worked

Andrew-Dickinson commented 1 month ago

Also something mypy would probably catch if we didn't have it disabled on import stuff 😓