diff --git a/db_api_3.py b/db_api_3.py index bd04f74..86d8955 100644 --- a/db_api_3.py +++ b/db_api_3.py @@ -3,12 +3,13 @@ from helper2_0 import get_forum_info, get_user_info, get_thread_info, get_post_info, DB, right_index, DoesNotExist import MySQLdb from datetime import datetime -from flask.ext.runner import Runner + app = Flask(__name__) -app.debug = True -runner = Runner(app) +app.debug = False +app.config['JSON_SORT_KEYS'] = False +app.config['JSONIFY_PRETTYPRINT_REGULAR'] = False db = DB() @@ -1014,4 +1015,4 @@ def index(): return "lol" if __name__ == '__main__': - runner.run() \ No newline at end of file + app.run() \ No newline at end of file diff --git a/db_api_3.pyc b/db_api_3.pyc index af45598..966e931 100644 Binary files a/db_api_3.pyc and b/db_api_3.pyc differ diff --git a/helper2_0.py b/helper2_0.py index 1b59469..e8c0b35 100644 --- a/helper2_0.py +++ b/helper2_0.py @@ -5,7 +5,7 @@ class DoesNotExist(Exception): class DB(): def __init__(self): - self.connection = MySQLdb.connect(host="localhost", user="root", db="db_api") + self.connection = MySQLdb.connect(host="localhost", user="root", db="db_api_2") #self.get_cursor().execute("SET FOREIGN_KEY_CHECKS = 0;"); def get_cursor(self, modif=None): self.connection.ping(True) diff --git a/helper2_0.pyc b/helper2_0.pyc index e000f0e..2fb9182 100644 Binary files a/helper2_0.pyc and b/helper2_0.pyc differ