add original

This commit is contained in:
locula 2023-06-14 11:04:16 -04:00 committed by arp102
parent fc5917365b
commit 1a0f63af61
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,8 @@ class AttributeValueFactory(object):
return primitives.Boolean(value, enums.Tags.NEVER_EXTRACTABLE)
elif name is enums.AttributeType.CUSTOM_ATTRIBUTE:
return attributes.CustomAttribute(value)
elif name is enums.AttributeType.ORIGINAL_CREATION_DATE:
return primitives.DateTime(value, enums.Tags.ORIGINAL_CREATION_DATE)
else:
if not isinstance(name, str):
raise ValueError('Unrecognized attribute type: '