Skip to content

Commit 692a2ab

Browse files
fix
1 parent 1e3a07b commit 692a2ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def tag_vote():
157157
if tag==None:
158158
tag_params={
159159
'problem_official_name':params['problem_id'],
160-
'problem_name':request.form.get('contestname'),
160+
'problem_name':request.args.get('problem_name'),
161161
'first_tag':params['tag']
162162
}
163163
newProblemTag=problem_tag(**tag_params)
@@ -179,7 +179,7 @@ def tag_vote():
179179

180180
if tag !=None:
181181
tag.first_tag=tag_
182-
tag.problem_name=request.form.get('contestname')
182+
tag.problem_name=request.args.get('problem_name')
183183
db.session.commit()
184184

185185
return render_template('vote_fin.html')

0 commit comments

Comments
 (0)