From 33ba90a35b8e055468a7baeb28f935a7ce0b253d Mon Sep 17 00:00:00 2001 From: neo-2 Date: Fri, 6 Dec 2024 12:05:15 +0100 Subject: [PATCH] ST TEN 14 --- src/components/archive_synchronizer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/archive_synchronizer.py b/src/components/archive_synchronizer.py index 8a10742..ca3a616 100644 --- a/src/components/archive_synchronizer.py +++ b/src/components/archive_synchronizer.py @@ -58,7 +58,7 @@ class ArchiveSynchronizer(Component): if self.main_window is None: self.main_window = get_main_window() - if self.name != "remote_archiver_extra": + if self.name != "archive_synchronizer_extra": # MAIN SERVER bit_pos = 0 unsaved_records = Archive.select().where((Archive.archived == 0) | @@ -85,9 +85,9 @@ class ArchiveSynchronizer(Component): if save_ok: record.archived |= (1 << bit_pos) - self.log(f"({self.name}) id {record.id}:", "archived remotely", f"{(e - s):.3f}s") + self.log.info(f"({self.name}) id {record.id}: archived remotely") else: - self.log(f"({self.name}) id {record.id}:", "failed to archive remotely", f"{(e - s):.3f}s") + self.log.info(f"({self.name}) id {record.id}: failed to archive remotely") self.main_window.run_request.emit(record.save, [], {}) if self.hold_time > 0: