Skip to content

Commit

Permalink
Fixed an unecessary string replacement in App SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
frikky committed May 8, 2024
1 parent d9123db commit 0708a51
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/app_sdk/app_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3428,11 +3428,11 @@ def check_branch_conditions(action, fullexecution, self):
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
Expand Down Expand Up @@ -3486,6 +3486,7 @@ def check_branch_conditions(action, fullexecution, self):

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))
Expand Down Expand Up @@ -3515,7 +3516,7 @@ def check_branch_conditions(action, fullexecution, self):
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
Expand Down

0 comments on commit 0708a51

Please sign in to comment.