Fixed reloading timestamp in new format
This commit is contained in:
parent
b69c90345f
commit
86732b8782
1 changed files with 4 additions and 5 deletions
|
|
@ -91,8 +91,8 @@ def capture_from_path(path):
|
||||||
|
|
||||||
# Populate capture parameters
|
# Populate capture parameters
|
||||||
capture.id = image_metadata.get("id")
|
capture.id = image_metadata.get("id")
|
||||||
capture.datetime = dateutil.parser.isoparse(
|
capture.time = dateutil.parser.isoparse(
|
||||||
image_metadata.get("acquisitionDate")
|
image_metadata.get("time") or image_metadata.get("acquisitionDate")
|
||||||
)
|
)
|
||||||
capture.format = image_metadata.get("format")
|
capture.format = image_metadata.get("format")
|
||||||
capture.tags = image_metadata.get("tags")
|
capture.tags = image_metadata.get("tags")
|
||||||
|
|
@ -177,7 +177,6 @@ class CaptureObject(object):
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dataset(self) -> str:
|
def dataset(self) -> str:
|
||||||
"""
|
"""
|
||||||
|
|
@ -190,7 +189,7 @@ class CaptureObject(object):
|
||||||
return {
|
return {
|
||||||
"id": dataset.get("id"),
|
"id": dataset.get("id"),
|
||||||
"name": dataset.get("name"),
|
"name": dataset.get("name"),
|
||||||
"type": dataset.get("type")
|
"type": dataset.get("type"),
|
||||||
}
|
}
|
||||||
|
|
||||||
# HANDLE TAGS
|
# HANDLE TAGS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue