Refactor loader to parser, remove hlds from app.py

This commit is contained in:
Midgard 2020-01-26 01:33:08 +01:00
parent 37e3799985
commit 1d9e7cc170
Signed by: midgard
GPG key ID: 511C112F1331BBB4
4 changed files with 2 additions and 6 deletions

View file

@ -15,7 +15,6 @@ from flask_migrate import Migrate, MigrateCommand
from flask_oauthlib.client import OAuth, OAuthException
from flask_script import Manager, Server
import hlds
from admin import init_admin
from login import init_login
from models import db
@ -71,9 +70,6 @@ def register_plugins(app: Flask) -> Manager:
# Initialize SQLAlchemy
db.init_app(app)
# Load locations
locations = hlds.load_all()
# Initialize Flask-Migrate
migrate = Migrate(app, db)
app_manager = Manager(app)

View file

@ -2,7 +2,7 @@
from os import path
import itertools
from .loader import parse_all_directory
from .parser import parse_all_directory
__all__ = ["definitions"]

View file

@ -2,7 +2,7 @@
import json
from tatsu.util import asjson
from app.hlds.loader import parse_files
from app.hlds.parser import parse_files
USAGE = """{0} [filename]...