-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
37 lines (22 loc) · 650 Bytes
/
app.py
File metadata and controls
37 lines (22 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from flask import Flask, render_template, url_for,redirect
from datetime import datetime
from flask import redirect,request,abort
import os
from courseFinder import *
app = Flask(__name__)
@app.route('/')
def fun():
return render_template('index.html')
@app.route('/redirect',methods=['POST'])
def algo():
lang=request.form['lang']
return redirect('/'+lang)
@app.route('/suggestion')
def method_name():
return render_template('suggestionForm.html')
@app.route('/<course>')
def hello(course):
# print(course)
return render_template('result.html',array=function(course))
if __name__ == '__main__':
app.run(debug=True)