Skip to content
Snippets Groups Projects
Commit e7997b8a authored by Milo Hivert's avatar Milo Hivert
Browse files

coupure rics et amphi prez

parent 90f41214
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,6 @@ ...@@ -7,6 +7,6 @@
{% block content %} {% block content %}
<div class="block_commande"> <div class="block_commande">
<p>La hotline ouvre à 9h .</p> <p>Désolé, la hotline est coupée pendant l'amphi des prezs et RICS !</p>
</div> </div>
{% endblock %} {% endblock %}
...@@ -100,7 +100,7 @@ def commande_passee(request, requete): ...@@ -100,7 +100,7 @@ def commande_passee(request, requete):
patiente=temps_entre_commandes-durée_dernière_commande patiente=temps_entre_commandes-durée_dernière_commande
return render(request,"campagne/patiente.html",{"min":patiente//60, "sec":patiente%60}) return render(request,"campagne/patiente.html",{"min":patiente//60, "sec":patiente%60})
if check(request)[1]['role']=="cotisant": if check(request)[1]['role']=="cotisant":
if int(date_mtn.hour<9): if int(date_mtn.hour)<9 or int(date_mtn.day)==7:
return render(request,"campagne/pas_lheure.html") return render(request,"campagne/pas_lheure.html")
commande=commande_crepe.objects.create(adresse_livraison=L[5], crepe_nature=L[0], crepe_nutella=L[1], crepe_sucre=L[2], crepe_confiture_fraise=L[3],crepe_confiture_abricot=L[4],commanditaire=utilisateur.objects.get(email=mail)) commande=commande_crepe.objects.create(adresse_livraison=L[5], crepe_nature=L[0], crepe_nutella=L[1], crepe_sucre=L[2], crepe_confiture_fraise=L[3],crepe_confiture_abricot=L[4],commanditaire=utilisateur.objects.get(email=mail))
commande.save() commande.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment