ethanopp / fitly

Self hosted web analytics for endurance athletes
MIT License
184 stars 24 forks source link

sqlalchemy.exc.StatementError: (builtins.TypeError) SQLite Date type only accepts Python date objects as input. #5

Closed pierretamisier closed 4 years ago

pierretamisier commented 4 years ago

Hello,

I think the commit 67bef5cbd62218a50a4bcb2e5af8c80b329deb3f breaks the build. When I deploy this version locally (run-fitly-dev) I cannot update the Birthday in settings anymore and get a callback error in the UI.

Steps to reproduce the issue:

(env) pierre@pierre-thinkpad:~/Workspace/fitly(master)$ rm config/fitness.db 
(env) pierre@pierre-thinkpad:~/Workspace/fitly(master)$ git checkout 67bef5cbd62218a50a4bcb2e5af8c80b329deb3f .
(env) pierre@pierre-thinkpad:~/Workspace/fitly(master)$ run-fitly-dev

I delete the db to make sure I'm using clean data, and that everything I'm as a first time user in the app works.

Go to settings and enter my birthday, click ok. image image

I also can reproduce this issue by cloning the repo again from scratch and deploying the app.

ethanopp commented 4 years ago

Thanks @pierretamisier

Should now be fixed in https://github.com/ethanopp/fitly/commit/0b0d98b9fba07c982b641d67116f0e9de4865721

pierretamisier commented 4 years ago

Indeed! Thanks