From 428a9b0b44fea839e4630cc4d2422f4c5d6efc44 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 18 Sep 2024 16:51:57 +0200 Subject: [PATCH] Fixed a but with singlepages in the startpage backend --- slaeforms/app.py | 2 +- slaeforms/templates/intropage.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/slaeforms/app.py b/slaeforms/app.py index 0481eee..60dc765 100644 --- a/slaeforms/app.py +++ b/slaeforms/app.py @@ -186,7 +186,7 @@ def startpage(): for name in block_names: print("block: ",name) - if config[name]["type"] == "TaskTemplate" and ("stimuli" in current_block): + if config[name]["type"] == "TaskTemplate" and ("stimuli" in config[name]): match config[name]["stimuli"]["type"]: case "single_video": order = list(config[name]["stimuli"]["list"]) # order = list of simuli keys diff --git a/slaeforms/templates/intropage.html b/slaeforms/templates/intropage.html index 27e08fe..55666bf 100644 --- a/slaeforms/templates/intropage.html +++ b/slaeforms/templates/intropage.html @@ -24,7 +24,7 @@ Sie können den Button nochmal anklicken um wieder zur Aufgabe zurückzukommen.

-

@@ -32,9 +32,9 @@

-
+
- +