Skip to content

Commit

Permalink
Update orion_pyspark_connector.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliocimino committed Sep 20, 2022
1 parent 471a2b8 commit 85edbbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions receiver/orion_pyspark_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,12 +371,12 @@ def Listify(values):
def ReplaceJSON(values):

values = Listify(values)
f = open(rconf.BLUEPRINTFILE, "r")
f = open(connectorconf.BLUEPRINTFILE, "r")
text=f.read()
f.close()
text = text.replace("\n", " ")
for v in values:
text = text.replace(rconf.PLACEHOLDER, str(v), 1)
text = text.replace(connectorconf.PLACEHOLDER, str(v), 1)

return text

Expand Down Expand Up @@ -409,7 +409,7 @@ def SemistructuredReplyToBroker(values, body, apiURL=connectorconf.API_URL, apiM

values = Listify(values)
for v in values:
body = body.replace(rconf.PLACEHOLDER, str(v), 1)
body = body.replace(connectorconf.PLACEHOLDER, str(v), 1)


try:
Expand Down

0 comments on commit 85edbbd

Please sign in to comment.