More case bugs.
This commit is contained in:
parent
d51f298102
commit
47a1e12c2c
@ -259,9 +259,9 @@ class Photo(object):
|
|||||||
def date(self):
|
def date(self):
|
||||||
if not self.is_valid:
|
if not self.is_valid:
|
||||||
return datetime(1900, 1, 1)
|
return datetime(1900, 1, 1)
|
||||||
if "DateTimeOriginal" in self._attributes:
|
if "dateTimeOriginal" in self._attributes:
|
||||||
return self._attributes["dateTimeOriginal"]
|
return self._attributes["dateTimeOriginal"]
|
||||||
elif "DateTime" in self._attributes:
|
elif "dateTime" in self._attributes:
|
||||||
return self._attributes["dateTime"]
|
return self._attributes["dateTime"]
|
||||||
else:
|
else:
|
||||||
return self._attributes["dateTimeFile"]
|
return self._attributes["dateTimeFile"]
|
||||||
|
Loading…
Reference in New Issue
Block a user