Fixed an unecessary string replacement in App SDK
This commit is contained in:
@@ -3428,11 +3428,11 @@ class AppBase:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
actionname = action["name"]
|
actionname = action["name"]
|
||||||
|
|
||||||
|
# Loops in general goes in here to be parsed out as one->multi
|
||||||
if len(actualitem) > 0:
|
if len(actualitem) > 0:
|
||||||
multiexecution = True
|
multiexecution = True
|
||||||
|
|
||||||
# Loop WITHOUT JSON variables go here.
|
|
||||||
# Loop WITH variables go in else.
|
|
||||||
handled = False
|
handled = False
|
||||||
|
|
||||||
# Has a loop without a variable used inside
|
# Has a loop without a variable used inside
|
||||||
@@ -3486,6 +3486,7 @@ class AppBase:
|
|||||||
|
|
||||||
if replacement.startswith("\"") and replacement.endswith("\""):
|
if replacement.startswith("\"") and replacement.endswith("\""):
|
||||||
replacement = replacement[1:len(replacement)-1]
|
replacement = replacement[1:len(replacement)-1]
|
||||||
|
|
||||||
#except json.decoder.JSONDecodeError as e:
|
#except json.decoder.JSONDecodeError as e:
|
||||||
|
|
||||||
#self.logger.info("REPLACING %s with %s" % (key, replacement))
|
#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)
|
self.logger.info("(2) JSON ERROR IN FILE HANDLING: %s" % e)
|
||||||
|
|
||||||
if not isfile:
|
if not isfile:
|
||||||
tmpitem = tmpitem.replace("\\\\", "\\", -1)
|
#tmpitem = tmpitem.replace("\\\\", "\\", -1)
|
||||||
resultarray.append(tmpitem)
|
resultarray.append(tmpitem)
|
||||||
|
|
||||||
# With this parameter ready, add it to... a greater list of parameters. Rofl
|
# With this parameter ready, add it to... a greater list of parameters. Rofl
|
||||||
|
|||||||
Reference in New Issue
Block a user