Updated example [skip ci]

This commit is contained in:
Rhet Turnbull 2021-06-20 18:11:41 -07:00
parent 377e165be4
commit 49adff1f3b

View File

@ -5,7 +5,7 @@ from typing import List
from osxphotos import PhotoInfo from osxphotos import PhotoInfo
# call this with --query-function:examples/query_function.py::best_selfies # call this with --query-function examples/query_function.py::best_selfies
def best_selfies(photos: List[PhotoInfo]) -> List[PhotoInfo]: def best_selfies(photos: List[PhotoInfo]) -> List[PhotoInfo]:
"""your query function should take a list of PhotoInfo objects and return a list of PhotoInfo objects (or empty list)""" """your query function should take a list of PhotoInfo objects and return a list of PhotoInfo objects (or empty list)"""
# this example finds your best selfie for every year # this example finds your best selfie for every year