mirror of
https://github.com/nikdoof/evestandings.git
synced 2025-12-13 11:12:17 +00:00
Added basic flask container
This commit is contained in:
13
standings/flask.py
Normal file
13
standings/flask.py
Normal file
@@ -0,0 +1,13 @@
|
||||
try:
|
||||
from flask import Flask
|
||||
except ImportError:
|
||||
raise Exception('Flask is not available, please install if you wish to use Standings as a webapp')
|
||||
|
||||
from standings import Standings
|
||||
|
||||
app = Flask(__name__)
|
||||
stdobj = Standings()
|
||||
|
||||
@app.route('/')
|
||||
def standings():
|
||||
return stdobj._get_html()
|
||||
Reference in New Issue
Block a user