Added favorite and hidden to cmd_line

This commit is contained in:
Rhet Turnbull
2019-11-24 09:45:36 -08:00
parent b1fd019120
commit d840c11ddb
2 changed files with 9 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ from Foundation import *
from . import _applescript
# TODO: Add RKMaster.originalFileName to Photos 4 code for original_file
# TODO: Add test for __str__ and to_json
# TODO: Add favorites, hidden
# TODO: Add location
# TODO: standardize _ and __ as leading char for private variables
@@ -1095,6 +1095,8 @@ class PhotoInfo:
"path": self.path(),
"ismissing": self.ismissing(),
"hasadjustments": self.hasadjustments(),
"favorite": self.favorite(),
"hidden": self.hidden(),
}
return yaml.dump(info, sort_keys=False)
@@ -1114,6 +1116,8 @@ class PhotoInfo:
"path": self.path(),
"ismissing": self.ismissing(),
"hasadjustments": self.hasadjustments(),
"favorite": self.favorite(),
"hidden": self.hidden(),
}
return json.dumps(pic)

View File

@@ -187,6 +187,8 @@ def print_photo_info(photos, json=False):
"path",
"ismissing",
"hasadjustments",
"favorite",
"hidden",
]
)
for p in photos:
@@ -204,6 +206,8 @@ def print_photo_info(photos, json=False):
p.path(),
p.ismissing(),
p.hasadjustments(),
p.favorite(),
p.hidden(),
]
)
for row in dump: