Skip to content

Commit a9353bb

Browse files
committed
Fix bug from #38
1 parent 2436be6 commit a9353bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

whyattend/webapp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ def create_battle():
736736
battle_commander = Player.query.get(int(request.form['battle_commander']))
737737
description = request.form.get('description', '')
738738
duration = request.form.get('duration', 15 * 60)
739-
battle_group = request.form.get('battle_group', -2)
739+
battle_group = int(request.form.get('battle_group', -2))
740740
battle_group_title = request.form.get('battle_group_title', '')
741741
battle_group_description = request.form.get('battle_group_description', '')
742742
battle_group_final = request.form.get('battle_group_final', '') == 'on'

0 commit comments

Comments
 (0)