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

Update outerElectronFl.py

Browse files
Files changed (1) hide show
  1. outerElectronFl.py +4 -3
outerElectronFl.py CHANGED
@@ -297,9 +297,10 @@ def quiz():
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")
 
297
 
298
  @app.route('/next', methods=['POST'])
299
  def next_question():
300
+ global current_εŒ–εˆη‰©, current_εŒ–εˆη‰©ε,currentEl
301
+
302
  current_εŒ–εˆη‰©, current_εŒ–εˆη‰©ε = get_random_country()
303
+ currentEl=current_εŒ–εˆη‰©
304
+ return redirect(url_for('quiz'))
305
  if __name__ == '__main__':
306
  app.run(debug=True, port=7860, host="0.0.0.0")