Commit 9806a756 authored by raida's avatar raida

Test10

parent a8f8902e
......@@ -1708,13 +1708,13 @@ def WEI1Aalgo(request, sock, kwargs):
if request.method == "GET":
variables["form"] = forms.WEI1AForm(label_suffix=_(u" :"))
variables["type"] = '1a'
variables["liste"] = algo1a.test(True, [], 1)
elif request.method == "POST":
separator = "#" if request.session["quest"] != "" else ""
request.session["quest"] += separator + request.POST.get("reponse")
res = request.session["quest"]
variables["liste"] = algo1a.test(True, [] if res == '' else res.split("#"), 1)
variables["liste"] = algo1a.test(True, request.session["quest"].split("#"), 1)
# DEBUG
variables["wei"] = request.session["wei1A2019"].copy()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment