From d9cb25ffb3ee91a81342f854a8bef29ee2d4e513 Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Fri, 5 Mar 2021 18:07:03 +0300 Subject: [PATCH] minor fix in backward compatibility --- .../Orchestrator/BackwardCompatibility.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py b/Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py index 7d2d1348..0cc82b95 100644 --- a/Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py +++ b/Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py @@ -328,6 +328,14 @@ def Update(inGSettings): # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Update Structure gSettings["Processor"] from . import SettingsTemplate + if "DumpLogListRefreshIntervalSecFloat" not in inGSettings["Client"]: # Create new ProcessorDict structure + inGSettings["Client"].update({ + "DumpLogListRefreshIntervalSecFloat": 3.0, # Duration between updates for the Client + "DumpLogListCountInt": 100, # Set the max row for the dump + "DumpLogList": [], # Will be filled automatically + "DumpLogListHashStr": None, # Will be filled automatically + }) + if lL: lL.warning(f"Backward compatibility (v1.1.20 to v1.2.0): Create new attribute 'Client > DumpLog... with default parameters'") # Log about compatibility if "Processor" in inGSettings: # Check if Processor exist # Update Logger if lL is not None: @@ -354,14 +362,6 @@ def Update(inGSettings): if "VersionStr" not in inGSettings: # Create new ProcessorDict structure inGSettings["VersionStr"] = None if lL: lL.warning(f"Backward compatibility (v1.1.20 to v1.2.0): Create new attribute 'VersionStr'") # Log about compatibility - if "DumpLogListRefreshIntervalSecFloat" not in inGSettings["Client"]: # Create new ProcessorDict structure - inGSettings["Client"].update({ - "DumpLogListRefreshIntervalSecFloat": 3.0, # Duration between updates for the Client - "DumpLogListCountInt": 100, # Set the max row for the dump - "DumpLogList": [], # Will be filled automatically - "DumpLogListHashStr": None, # Will be filled automatically - }) - if lL: lL.warning(f"Backward compatibility (v1.1.20 to v1.2.0): Create new attribute 'Client > DumpLog... with default parameters'") # Log about compatibility if "AgentDict" not in inGSettings: # Create new AgentDict structure inGSettings["AgentDict"]= {} if lL: lL.warning(