Update main.py
Browse files
main.py
CHANGED
|
@@ -4,4 +4,15 @@ app=Flask(__name__)
|
|
| 4 |
|
| 5 |
@app.route('/')
|
| 6 |
def welcome():
|
| 7 |
-
return "Welcome to 🤗"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
@app.route('/')
|
| 6 |
def welcome():
|
| 7 |
+
return "Welcome to 🤗"
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
@app.route('/success/<int:score>')
|
| 11 |
+
def success(score):
|
| 12 |
+
res=""
|
| 13 |
+
if score>=50:
|
| 14 |
+
res="PASS"
|
| 15 |
+
else:
|
| 16 |
+
res='FAIL'
|
| 17 |
+
exp={'score':score,'res':res}
|
| 18 |
+
return render_template('result.html',result=exp)
|