Commit 9d6f1739 authored by raida's avatar raida

Fix bug in html

parent 38fa4852
......@@ -24,7 +24,7 @@
<div style="height: 50px"></div>
{% if liste %}
<progress value="{{ nb_quest / 20 * 100}}" max="100"></progress>
<progress value="{{ nb_quest }}" max="100"></progress>
<form action="{{ NOTE_ROOT_URL }}wei/formulaire/" method="POST">
{% csrf_token %}
......
......@@ -1716,7 +1716,7 @@ def WEI1Aalgo(request, sock, kwargs):
separator = "#" if request.session["quest"] != "" else ""
request.session["quest"] += separator + request.POST.get("reponse")
variables["liste"] = algo1a.test(True, request.session["quest"].split("#"), request.session["wei1A2019"]["nom"] + request.session["wei1A2019"]["prenom"])
request.session["nb_quest"] += 1
request.session["nb_quest"] = (request.session["nb_quest"] / 100 * 20 + 1) / 20 * 100
if variables["liste"] is None: # Fin du questionnaire
request.session["wei1A2019"]["quest"] = request.session["quest"]
......
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