From 691392988f7b0d9cf0b0fa56ab75f42b5b1725d2 Mon Sep 17 00:00:00 2001 From: yann Date: Thu, 3 Jul 2025 15:25:21 +0200 Subject: [PATCH] more than 12 test ok --- clubs.json | 4 ++-- server.py | 1 - templates/welcome.html | 2 +- tests/conftest.py | 2 +- tests/test_purchase.py | 3 +-- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/clubs.json b/clubs.json index 46bed31..b3800e6 100644 --- a/clubs.json +++ b/clubs.json @@ -7,10 +7,10 @@ { "name":"Iron Temple", "email": "admin@irontemple.com", - "points":"47" + "points":"4" }, { "name":"She Lifts", "email": "kate@shelifts.co.uk", "points":"12" } -]} \ No newline at end of file +]} diff --git a/server.py b/server.py index 771887f..96efd7c 100644 --- a/server.py +++ b/server.py @@ -53,7 +53,6 @@ def purchasePlaces(): else: places = {competition['name']: placesRequired} points = int(club['points']) - print("booked", places) if placesRequired <= 12: if places[competition['name']] <= 12: if placesRequired <= points: diff --git a/templates/welcome.html b/templates/welcome.html index 8289e70..bfecda3 100644 --- a/templates/welcome.html +++ b/templates/welcome.html @@ -15,7 +15,7 @@ {% endfor %} {% endif%} - Points available: {{club['points']}} + Points available: {{club['points']}}

Competitions: