Commit 057cea7f authored by raida's avatar raida

The progress bar bug

parent 173108be
......@@ -1719,7 +1719,7 @@ def WEI1Aalgo(request, sock, kwargs):
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
variables["nb_quest"] = int(request.session["nb_quest"] / 20 * 100)
variables["nb_quest"] = request.session["nb_quest"] *100 / 20
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