add ' back

This commit is contained in:
Deborah Barnard 2024-07-01 13:19:50 +01:00
parent 14bf0cb7c8
commit 3a33088ed7

View File

@ -1,4 +1,5 @@
import requests
import html
def define_env(env):
"Hook function"
@ -8,5 +9,5 @@ def define_env(env):
r = requests.get(url = workflow_endpoint)
workflow_json = r.content.decode("utf-8")
print(workflow_json)
return f"<div class='workflow_preview'><n8n-demo clicktointeract='true' frame='true' collapseformobile='false' workflow={workflow_json}></n8n-demo></div>"
return f"<div class='workflow_preview'><n8n-demo clicktointeract='true' frame='true' collapseformobile='false' workflow='{workflow_json}'></n8n-demo></div>"