OzoneAsai commited on
Commit
ab517b8
β€’
1 Parent(s): babab0c

Update outerElectronFl.py

Browse files
Files changed (1) hide show
  1. outerElectronFl.py +3 -3
outerElectronFl.py CHANGED
@@ -291,15 +291,15 @@ def quiz():
291
  if user_input == currentEl:
292
  result = '正解です!'
293
  else:
294
- result = '不正解です。正解は{}です。'.format(current_εŒ–εˆη‰©ε)
295
 
296
- return render_template('quiz.html', element=currentEl, result=result)
297
 
298
  @app.route('/next', methods=['POST'])
299
  def next_question():
300
  global current_εŒ–εˆη‰©, current_εŒ–εˆη‰©ε
301
  current_εŒ–εˆη‰©, current_εŒ–εˆη‰©ε = get_random_country()
302
- return redirect(url_for('quiz'))
303
 
304
  if __name__ == '__main__':
305
  app.run(debug=True, port=7860, host="0.0.0.0")
 
291
  if user_input == currentEl:
292
  result = '正解です!'
293
  else:
294
+ result = '不正解です。正解は{}です。'.format(currentEl)
295
 
296
+ return render_template('quiz.html', element=current_εŒ–εˆη‰©, result=result)
297
 
298
  @app.route('/next', methods=['POST'])
299
  def next_question():
300
  global current_εŒ–εˆη‰©, current_εŒ–εˆη‰©ε
301
  current_εŒ–εˆη‰©, current_εŒ–εˆη‰©ε = get_random_country()
302
+ return render_template('quiz.html', element=currentEl, result=result)
303
 
304
  if __name__ == '__main__':
305
  app.run(debug=True, port=7860, host="0.0.0.0")