INNER CODE UNIT · Python
__eq__
AnsahMohammad/shots-studio · legacy/web/core.py:22
def __eq__(self, other):
if not isinstance(other, Image):
return False
return self.path == other.path
def get_info(self):
return {
"filename": self.filename,
"path": self.path,
"size": self.size,
"created_at": self.created_at,
"modified_at": self.modified_at,
"tags": self.tags,
"description": self.description,
"collections": [c.name for c in self.collections],
}
def update_metadata(self):