Skip to content

Commit

Permalink
Fixed a regression when submitting form scores.
Browse files Browse the repository at this point in the history
  • Loading branch information
exhuma committed May 8, 2013
1 parent c2004eb commit 1c4020d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lost_tracker/main.py
Expand Up @@ -189,7 +189,7 @@ def group_form_score(group_id, form_id):
@app.route('/score/<int:group_id>', methods=['POST'])
def score(group_id):
station_id = int(request.form['station_id'])
station_score = int(request.form['station_score'])
station_score = request.form['station_score']

try:
form_id = int(request.form['form_id'])
Expand All @@ -199,6 +199,7 @@ def score(group_id):
form_score = 0

if station_score:
station_score = int(station_score)
group_station = GroupStation.get(
group_id,
station_id)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
setup(
name="lost-tracker",
version="1.2.5",
version="1.2.6",
packages=find_packages(),
install_requires=[
'Flask==0.9',
Expand Down

0 comments on commit 1c4020d

Please sign in to comment.