Skip to content

Commit da3a0d2

Browse files
authored
click fix (#110)
1 parent 92e1129 commit da3a0d2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/click/views/eg006_embed_clickwrap.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def embed_clickwrap():
2929
2. Call the worker method
3030
3. Render the response
3131
"""
32-
example = get_example_by_number(session["manifest"], example_number)
32+
example = get_example_by_number(session["manifest"], example_number, api)
3333

3434
# 1. Get required arguments
3535
args = Eg006EmbedClickwrapController.get_args()
@@ -55,7 +55,7 @@ def embed_clickwrap():
5555

5656
# 3. Render the response
5757
return render_template(
58-
"eg006_done.html",
58+
"click/eg006_done.html",
5959
title=example["ExampleName"],
6060
message=f"""See the embedded clickwrap in the dialog box.""",
6161
json=json.dumps(json.dumps(results.to_dict(), default=str)),
@@ -68,11 +68,11 @@ def embed_clickwrap():
6868
@authenticate(eg=eg, api=api)
6969
def get_view():
7070
"""responds with the form for the example"""
71-
example = get_example_by_number(session["manifest"], example_number)
71+
example = get_example_by_number(session["manifest"], example_number, api)
7272

7373
args = Eg006EmbedClickwrapController.get_args()
7474
return render_template(
75-
"eg006_embed_clickwrap.html",
75+
"click/eg006_embed_clickwrap.html",
7676
title=example["ExampleName"],
7777
example=example,
7878
clickwraps_data=Eg006EmbedClickwrapController.get_active_clickwraps(args),

0 commit comments

Comments
 (0)