ST TEN 14
This commit is contained in:
parent
3fd2efcd7b
commit
33ba90a35b
|
|
@ -58,7 +58,7 @@ class ArchiveSynchronizer(Component):
|
||||||
if self.main_window is None:
|
if self.main_window is None:
|
||||||
self.main_window = get_main_window()
|
self.main_window = get_main_window()
|
||||||
|
|
||||||
if self.name != "remote_archiver_extra":
|
if self.name != "archive_synchronizer_extra":
|
||||||
# MAIN SERVER
|
# MAIN SERVER
|
||||||
bit_pos = 0
|
bit_pos = 0
|
||||||
unsaved_records = Archive.select().where((Archive.archived == 0) |
|
unsaved_records = Archive.select().where((Archive.archived == 0) |
|
||||||
|
|
@ -85,9 +85,9 @@ class ArchiveSynchronizer(Component):
|
||||||
|
|
||||||
if save_ok:
|
if save_ok:
|
||||||
record.archived |= (1 << bit_pos)
|
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:
|
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, [], {})
|
self.main_window.run_request.emit(record.save, [], {})
|
||||||
|
|
||||||
if self.hold_time > 0:
|
if self.hold_time > 0:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user