subclass VideoFile

This commit is contained in:
Thomas Peetz
2025-01-24 05:02:08 +01:00
parent 0cc73c09aa
commit 88c623edb7
2 changed files with 9 additions and 11 deletions
@@ -285,11 +285,11 @@ class KontorDB:
if type(existing_value) is not type(update_value):
existing_value = str(existing_value)
if existing_value != update_value:
self.log.info("%s has changed: %s != %s", key, existing_value, update_value)
self.log.info(f"{key} has changed: {existing_value} != {update_value}")
setattr(existing_item, key, update_value)
session.commit()
changed = True
self.log.info("update %s with %s", key, update_value)
self.log.info("update {key} with {update_value}", (key, update_value))
return changed
def add_link(self, link: str) -> dict: