From ab2b52adffe10baba780ac05bfadf829db2f3264 Mon Sep 17 00:00:00 2001 From: James Wang Date: Wed, 23 Dec 2015 09:34:20 -0500 Subject: [PATCH] Remove useless mysql function --- server/api/utils.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/server/api/utils.py b/server/api/utils.py index 28127e5..b285192 100644 --- a/server/api/utils.py +++ b/server/api/utils.py @@ -1,21 +1,9 @@ import datetime -import MySQLdb import random import string from werkzeug.security import generate_password_hash, check_password_hash -host = "localhost" -user = "root" - -conn = MySQLdb.connect() - -def get_connection(): - global conn - if not conn: - conn = MySQLdb.connect(host=host, user=user) - return conn - def hash_password(s): return generate_password_hash(s)