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

sqlalchemy.exc.StatementError while loading data #1

Open
thinkORo opened this issue Feb 8, 2024 · 0 comments
Open

sqlalchemy.exc.StatementError while loading data #1

thinkORo opened this issue Feb 8, 2024 · 0 comments

Comments

@thinkORo
Copy link

thinkORo commented Feb 8, 2024

I saw your video and checked your code.

Unfortunately everytime when I want to insert data (while startup or with a post request) into a datetime field I get:

sqlalchemy.exc.StatementError: (builtins.TypeError) SQLite DateTime type only accepts Python datetime and date objects as input. [SQL: INSERT INTO trackmodel (title, artist, duration, last_play) VALUES (?, ?, ?, ?)] [parameters: [{'title': 'Free', 'duration': '220', 'last_play': '2018-05-17 16:56:21', 'artist': 'Ultra Nate'}]]
I couldn't find any solution elsewhere.

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