Compare commits
No commits in common. "728c282a3dfd0fb958d37ab15efaafbad6f7be19" and "ab27d709468f57e3255cd1d2719ffd7f7f78f4c1" have entirely different histories.
728c282a3d
...
ab27d70946
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,7 +3,7 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|
||||||
|
instance/
|
||||||
|
|
||||||
uploads/
|
uploads/
|
||||||
zip_exports/
|
zip_exports/
|
||||||
|
@ -15,9 +15,9 @@ from sqlalchemy.orm import DeclarativeBase
|
|||||||
import os
|
import os
|
||||||
import csv
|
import csv
|
||||||
from zipfile import ZipFile
|
from zipfile import ZipFile
|
||||||
import hashlib
|
|
||||||
|
|
||||||
# activate environment: cd C:\...\...\....\...\Code\SLAEForms Testing\.venv\Scripts\
|
random_order = True
|
||||||
|
# activate environment: cd C:\Users\Jan\Google Drive\Master Stuff\Code\SLAEForms Testing\.venv\Scripts\
|
||||||
# then this: activate
|
# then this: activate
|
||||||
|
|
||||||
#SETUP--------------------------------------------------
|
#SETUP--------------------------------------------------
|
||||||
@ -41,7 +41,7 @@ app.secret_key = b"29fe9e8edd407c5491d4f1c05632d9fa33e26ed8734a3f5e080ebac3772a5
|
|||||||
|
|
||||||
UPLOAD_FOLDER = 'uploads'
|
UPLOAD_FOLDER = 'uploads'
|
||||||
EXPORT_FOLDER = 'exports'
|
EXPORT_FOLDER = 'exports'
|
||||||
PASSWORD = 'd5aff9fc14d1f20f4ccddaa8b4f2c1765228b74ed0b1dfb868bf1064e0d655e2'
|
PASSWORD = '#1ACGmsjd'
|
||||||
CONFIGFILE = 'userstudy1.json'
|
CONFIGFILE = 'userstudy1.json'
|
||||||
# CONFIGFILE = 'test.json'
|
# CONFIGFILE = 'test.json'
|
||||||
# CONFIGFILE = 'default.json'
|
# CONFIGFILE = 'default.json'
|
||||||
@ -191,7 +191,6 @@ def startpage():
|
|||||||
case "single_video":
|
case "single_video":
|
||||||
order = list(config[name]["stimuli"]["list"]) # order = list of simuli keys
|
order = list(config[name]["stimuli"]["list"]) # order = list of simuli keys
|
||||||
print("order: ",order)
|
print("order: ",order)
|
||||||
if "order" in config[name]["stimuli"]:
|
|
||||||
if config[name]["stimuli"]["order"] == "random":
|
if config[name]["stimuli"]["order"] == "random":
|
||||||
random.shuffle(order) #in random order
|
random.shuffle(order) #in random order
|
||||||
session["block_order"][name] = order
|
session["block_order"][name] = order
|
||||||
@ -623,8 +622,7 @@ def show_tables():
|
|||||||
def login():
|
def login():
|
||||||
|
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
pwhash = hashlib.sha256(request.form["password"].encode('utf-8')).hexdigest()
|
if request.form["password"] == PASSWORD:
|
||||||
if pwhash == PASSWORD:
|
|
||||||
session["logged_in"] = True
|
session["logged_in"] = True
|
||||||
return redirect(url_for("all_links"))
|
return redirect(url_for("all_links"))
|
||||||
|
|
||||||
|
@ -262,8 +262,7 @@ step={{question["step"]}}
|
|||||||
|
|
||||||
{% elif (questions[question]["type"] == "multiplechoice") %}
|
{% elif (questions[question]["type"] == "multiplechoice") %}
|
||||||
<div class="compressWidth">
|
<div class="compressWidth">
|
||||||
<p>
|
<label>
|
||||||
<div>
|
|
||||||
{{ questions[question]['text']}}
|
{{ questions[question]['text']}}
|
||||||
|
|
||||||
{% for point in questions[question]["points"] %}
|
{% for point in questions[question]["points"] %}
|
||||||
@ -273,8 +272,7 @@ step={{question["step"]}}
|
|||||||
{{ questions[question]['points'][point]['text']}}</label>
|
{{ questions[question]['points'][point]['text']}}</label>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</label>
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="spacer" aria-hidden="true" style="height:30px"></div>
|
<div class="spacer" aria-hidden="true" style="height:30px"></div>
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
"template": "standard_template.html",
|
"template": "standard_template.html",
|
||||||
"stimuli": {
|
"stimuli": {
|
||||||
"type": "single_video",
|
"type": "single_video",
|
||||||
"order": "",
|
|
||||||
"list": {
|
"list": {
|
||||||
"video_1": "platzhalter-video.mp4"
|
"video_1": "platzhalter-video.mp4"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user