Commit 7a2fb5f5 authored by Maxime Bombar's avatar Maxime Bombar

Commente un hardodage de prébet. Rustine pour éviter le crash

parent ea8c218a
......@@ -24,10 +24,10 @@
{% else %}
<h3>Graphiques d'entrées</h3>
{% endif %}
<select id="selecteur">
<option value=1790 selected>1790</option>
<option value=1754>1754</option>
<select/>
<!-- <select id="selecteur"> -->
<!-- <option value=1790 selected>1790</option> -->
<!-- <option value=1754>1754</option> -->
<!-- <select/> -->
<div id="container" style="width:50%; height:400px;"></div>
<br>
{% if request.META.HTTP_HOST == 'note-test.crans.org' %}
......
......@@ -2201,17 +2201,17 @@ def pot_gestion(request, sock, kwargs):
variables["hasadmin"] = hasadmin
sock.write(json.dumps(["stats_entree_pot", 1790]))
out = nk.full_read(sock)
temp = out["msg"]
temp = [ [l[0], l[1]] for l in temp]
variables["liste"] = temp
sock.write(json.dumps(["stats_entree_pot", 1754]))
out = nk.full_read(sock)
temp = out["msg"]
temp = [ [l[0], l[1]] for l in temp]
variables["liste1"] = temp
# sock.write(json.dumps(["stats_entree_pot", 1790]))
# out = nk.full_read(sock)
# temp = out["msg"]
# temp = [ [l[0], l[1]] for l in temp]
# variables["liste"] = temp
# sock.write(json.dumps(["stats_entree_pot", 1754]))
# out = nk.full_read(sock)
# temp = out["msg"]
# temp = [ [l[0], l[1]] for l in temp]
# variables["liste1"] = temp
return (variables, "note/pot_gestion.html")
......
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