TLBail / biotrace

Application permettant le suivi des installations d'un méthaniseur
MIT License
1 stars 0 forks source link

ValueErrror /webdynconfig #54

Open TLBail opened 6 months ago

TLBail commented 6 months ago

image ValueError ValueError: time data '2024-01-16' does not match format '%Y-%m-%d %H:%M:%S'

Traceback (most recent call last) File "/mnt/c/Users/theol/Taf/polytech2024/Projet Transversal/biotrace/.venv/lib/python3.10/site-packages/flask/app.py", line 1478, in call return self.wsgi_app(environ, start_response) File "/mnt/c/Users/theol/Taf/polytech2024/Projet Transversal/biotrace/.venv/lib/python3.10/site-packages/flask_socketio/init.py", line 43, in call return super(_SocketIOMiddleware, self).call(environ, File "/mnt/c/Users/theol/Taf/polytech2024/Projet Transversal/biotrace/.venv/lib/python3.10/site-packages/engineio/middleware.py", line 74, in call return self.wsgi_app(environ, start_response) File "/mnt/c/Users/theol/Taf/polytech2024/Projet Transversal/biotrace/.venv/lib/python3.10/site-packages/flask/app.py", line 1458, in wsgi_app response = self.handle_exception(e) File "/mnt/c/Users/theol/Taf/polytech2024/Projet Transversal/biotrace/.venv/lib/python3.10/site-packages/flask/app.py", line 1455, in wsgi_app response = self.full_dispatch_request() File "/mnt/c/Users/theol/Taf/polytech2024/Projet Transversal/biotrace/.venv/lib/python3.10/site-packages/flask/app.py", line 869, in full_dispatch_request rv = self.handle_user_exception(e) File "/mnt/c/Users/theol/Taf/polytech2024/Projet Transversal/biotrace/.venv/lib/python3.10/site-packages/flask/app.py", line 867, in full_dispatch_request rv = self.dispatch_request() File "/mnt/c/Users/theol/Taf/polytech2024/Projet Transversal/biotrace/.venv/lib/python3.10/site-packages/flask/app.py", line 852, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/mnt/c/Users/theol/Taf/polytech2024/Projet Transversal/biotrace/app/server.py", line 48, in webdynconfig last_config = configs[0].serialize() if len(configs) > 0 else None File "/mnt/c/Users/theol/Taf/polytech2024/Projet Transversal/biotrace/app/models/File.py", line 27, in serialize created_at = datetime.strptime(str(self.created_at), '%Y-%m-%d %H:%M:%S') File "/usr/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/usr/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '2024-01-16' does not match format '%Y-%m-%d %H:%M:%S'