Skip to content
Snippets Groups Projects
Commit d9a18ce6 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: properly convert timestamp to string

parent dd0baaf6
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ match. This occurs in basically three steps:
import traceback
from datetime import datetime
import caosdb as db
from caosdb.exceptions import TransactionError
......@@ -300,5 +301,7 @@ def get_value(prop):
if isinstance(prop.value, db.Entity):
return prop.value.id
elif isinstance(prop.value, datetime):
return prop.value.isoformat()
else:
return prop.value
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