Added latitude, longitude to cmd_line

This commit is contained in:
Rhet Turnbull
2019-11-27 07:39:48 -08:00
parent aa25c9eab7
commit 27b3469513
3 changed files with 11 additions and 3 deletions

View File

@@ -1129,6 +1129,8 @@ class PhotoInfo:
"hasadjustments": self.hasadjustments(),
"favorite": self.favorite(),
"hidden": self.hidden(),
"latitude": self._latitude(),
"longitude": self._longitude(),
}
return yaml.dump(info, sort_keys=False)
@@ -1150,6 +1152,8 @@ class PhotoInfo:
"hasadjustments": self.hasadjustments(),
"favorite": self.favorite(),
"hidden": self.hidden(),
"latitude": self._latitude(),
"longitude": self._longitude(),
}
return json.dumps(pic)

View File

@@ -325,6 +325,8 @@ def print_photo_info(photos, json=False):
"hasadjustments",
"favorite",
"hidden",
"latitude",
"longitude",
]
)
for p in photos:
@@ -344,6 +346,8 @@ def print_photo_info(photos, json=False):
p.hasadjustments(),
p.favorite(),
p.hidden(),
p._latitude(),
p._longitude(),
]
)
for row in dump: