in foundation_security_advisories/common.py [0:0]
def newest_instance(self):
"""
Returns the last modified instance of this CVE advisory (determined by git commit time).
Useful for when only one of the instances is being updated with the latest information.
"""
greatest_last_modified = 0
newest_instance: CVEAdvisoryInstance = None
for instance in self.instances:
if instance.file_last_modified > greatest_last_modified:
greatest_last_modified = instance.file_last_modified
newest_instance = instance
return newest_instance