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)