Clean up code
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import os, sys, datetime, inspect
|
||||
import inspect
|
||||
import os
|
||||
import sys
|
||||
|
||||
if not "FLASK_CONFIG" in os.environ:
|
||||
os.environ["FLASK_CONFIG"] = "../config.cfg"
|
||||
@@ -29,7 +31,7 @@ currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentfram
|
||||
parentdir = os.path.dirname(currentdir)
|
||||
sys.path.insert(0,parentdir)
|
||||
|
||||
from app.models import db, User, UserRank
|
||||
from app.models import db
|
||||
from app.default_data import populate, populate_test_data
|
||||
|
||||
if delete_db and os.path.isfile("db.sqlite"):
|
||||
|
||||
Reference in New Issue
Block a user