From 0708a51482066d1297d7e8b4fab94b711efd4f47 Mon Sep 17 00:00:00 2001 From: Frikky Date: Wed, 8 May 2024 23:05:32 +0200 Subject: [PATCH] Fixed an unecessary string replacement in App SDK --- backend/app_sdk/app_base.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/app_sdk/app_base.py b/backend/app_sdk/app_base.py index d5194909..88b9a217 100755 --- a/backend/app_sdk/app_base.py +++ b/backend/app_sdk/app_base.py @@ -3428,11 +3428,11 @@ class AppBase: pass actionname = action["name"] + + # Loops in general goes in here to be parsed out as one->multi if len(actualitem) > 0: multiexecution = True - # Loop WITHOUT JSON variables go here. - # Loop WITH variables go in else. handled = False # Has a loop without a variable used inside @@ -3486,6 +3486,7 @@ class AppBase: if replacement.startswith("\"") and replacement.endswith("\""): replacement = replacement[1:len(replacement)-1] + #except json.decoder.JSONDecodeError as e: #self.logger.info("REPLACING %s with %s" % (key, replacement)) @@ -3515,7 +3516,7 @@ class AppBase: self.logger.info("(2) JSON ERROR IN FILE HANDLING: %s" % e) if not isfile: - tmpitem = tmpitem.replace("\\\\", "\\", -1) + #tmpitem = tmpitem.replace("\\\\", "\\", -1) resultarray.append(tmpitem) # With this parameter ready, add it to... a greater list of parameters. Rofl