Commit a1c2f30d authored by Zach Osman's avatar Zach Osman
Browse files

Adding mbailies changes + mine

parent 39e5fd06
from flask import Flask
from flask import Response
from parscript import load_data
import json
app = Flask(__name__)
def display_data():
return json.dumps(load_data())
resp = Response(json.dumps(load_data(), ensure_ascii=False).encode('utf-8'))
resp.headers['Content-Type'] = 'application/json; charset=utf-8'
return resp
export FLASK_APP=mason-today/
export FLASK_DEBUG=1
flask run
export FLASK_DEBUG=0
flask run --host= --port=80
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment