move brackets and rename launcher

This commit is contained in:
Dmitry Belyaev 2021-10-07 14:35:46 +03:00
parent 710277abae
commit cf66a0d0d0
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
5 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ from flask_restful import Resource
from app.glob import get_config, get_manager
from app.manager import infobase_data_blank
from brackets import get_infobases as br_get_infobases
from app.brackets import get_infobases as br_get_infobases
def load_infobases(config) -> List[str]:

2
run.sh
View File

@ -4,4 +4,4 @@ cd "$( dirname "$0" )" || exit
. venv/bin/activate
gunicorn --bind 0.0.0.0:18333 pub1c-rest:app
gunicorn --bind 0.0.0.0:18333 run:app

View File

@ -43,7 +43,7 @@ def temp_config(tmpdir) -> str:
@pytest.fixture
def flask_app(temp_config) -> Flask:
os.environ['WEBPUB1C_CONFIG'] = temp_config
pub1c = importlib.import_module('pub1c-rest')
pub1c = importlib.import_module('run')
return pub1c.app