Skip to content

Commit 7e883be

Browse files
author
laurence
committed
fix bug
1 parent 81e09c8 commit 7e883be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def purchasePlaces():
4848
placesRequired = int(request.form['places'])
4949
competition['numberOfPlaces'] = int(competition['numberOfPlaces'])-placesRequired
5050
flash('Great-booking complete!')
51+
club["points"] = int(club["points"]) - placesRequired
5152
return render_template('welcome.html', club=club, competitions=competitions)
5253

5354

0 commit comments

Comments
 (0)