fixed server error

This commit is contained in:
Chris Midkiff 2020-05-15 23:42:44 -04:00
parent 806190d7c5
commit 5f9fc23670

View File

@ -2,9 +2,10 @@ from flask import Flask, jsonify, request
import json import json
import os import os
app = Flask(__name__) app = Flask(__name__)
base = os.getcwd() base = os.getcwd()
help = 'WW91IGZvdW5kIHRoZSBzZWNyZXQgbGlmZWxpbmUhIEdvb2QgZm9yIHlvdS4gWW91J3JlIHByb2JhYmx5IGZpbmUsIGJ1dCBpZiB5b3UgbmVlZCBoZWxwIHdpdGggc29tZXRoaW5nIG5vIG9uZSBlbHNlIHVuZGVyc3RhbmRzLCBlbWFpbCBmaXR0c0BzdXBlcnBpY2h1Lm9yZy4KUGxlYXNlIGtlZXAgdGhlIGV4aXN0ZW5jZSBvZiB0aGlzIHRvIHlvdXJzZWxmLiBOb2JvZHkgbGlrZXMgYSBuYXJjLg=='
@app.route('/cardboard') @app.route('/cardboard')
def card(): def card():
data = json.load(open(base + '/cardTrials.json')) data = json.load(open(base + '/cardTrials.json'))