diff --git a/standings/flask.py b/standings/flask.py new file mode 100644 index 0000000..d099ec0 --- /dev/null +++ b/standings/flask.py @@ -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()