Skip to content

Commit

Permalink
Convert datetime objects to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nanglo123 committed Jun 27, 2024
1 parent e468059 commit e69a0cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mira/modeling/amr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ def add_metadata_annotations(metadata, model):
metadata['annotations'] = {}
return
annotations_subset = {
k: v
k: str(v) if k in ["time_start", "time_end"] else v
for k, v in model.template_model.annotations.dict().items()
if k not in ["name", "description"]
# name and description already have a privileged place
Expand Down

0 comments on commit e69a0cd

Please sign in to comment.