I have a collection where objects have an isoEditionDate property in the form YYYY-MM-DD which can therefore be compared with standard operators.
recent_date = "0001-01-01"
objects_scanned = 0
for item in wv_artcoll.iterator():
objects_scanned += 1
if item.properties["isoEditionDay"] > recent_date:
recent_date = item.properties["isoEditionDay"]
print(
f"Most recent edition day found: {recent_date} in {objects_scanned} objects."
)
Is there a quicker, more efficient, way of assessing what is the greatest value in that property?