Commit f793a613 authored by raida's avatar raida

Test7

parent 7503ff0e
......@@ -9,10 +9,9 @@
{% endblock %}
{% block content %}
{% if wei or old or quest %}
{% if wei or quest %}
<h1>DEBUG part</h1>
{% if old %} {{ old }} {% endif %}
{% if wei %} {{ wei }} {% endif %}
{% if quest %} {{ quest }} {% endif %}
{% endif %}
......
......@@ -1684,7 +1684,6 @@ def WEI1Aalgo(request, sock, kwargs):
"""
variables = {}
variables["old"] = request.session["wei1A2019"].copy()
res = request.session["quest"]
variables["liste"] = algo1a.test(True, [] if res == '' else res.split("#"), 1)
......@@ -1716,7 +1715,10 @@ def WEI1Aalgo(request, sock, kwargs):
elif request.method == "POST":
separator = "#" if request.session["quest"] != "" else ""
request.session["quest"] += separator + request.POST.get("reponse")
variables["wei"] = request.session["wei1A2019"].copy() # DEBUG
# DEBUG
variables["wei"] = request.session["wei1A2019"].copy()
variables["quest"] = request.session["quest"]
else:
messages.add_error(request, "Requête inattendue : {}".format(request.method))
......
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