mirror of
https://github.com/nikdoof/evestandings.git
synced 2025-12-13 03:02:16 +00:00
14 lines
293 B
Python
14 lines
293 B
Python
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 .core import Standings
|
|
|
|
app = Flask(__name__)
|
|
stdobj = Standings()
|
|
|
|
@app.route('/')
|
|
def standings():
|
|
return stdobj._get_html()
|