Skip to content
Snippets Groups Projects
Commit d7118b74 authored by Simon Will's avatar Simon Will
Browse files

Use timespec=seconds for creation time

parent 6308bf99
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,6 @@ class BaseModel(db.Model):
d = {}
for key, val in self.sorted_attributes():
if isinstance(val, dt.datetime):
val = val.isoformat()
val = val.isoformat(timespec='seconds')
d[key] = val
return d
......@@ -107,7 +107,7 @@ def query_feedback():
model = parse.model if parse else None
model_lin = parse.lin if parse else None
joined = {
'id': piece.id, 'created': piece.created.isoformat(),
'id': piece.id, 'created': piece.created.isoformat(timespec='seconds'),
'nl': piece.nl, 'correct_lin': piece.correct_lin,
'original_model': piece.model, 'original_lin': piece.system_lin,
'parent_id': piece.parent_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment