Skip to content

Commit

Permalink
fix: rename application factory
Browse files Browse the repository at this point in the history
Refs: #429
  • Loading branch information
afuetterer committed Oct 12, 2023
1 parent 8a306e5 commit 9db1259
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fuji_server/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from flask_limiter.util import get_remote_address
from waitress import serve

from fuji_server.app.fuji_app import create_fuji_app
from fuji_server.app.fuji_app import create_app
from fuji_server.helper.preprocessor import Preprocessor


Expand Down Expand Up @@ -74,7 +74,7 @@ def main():
logger.info(f"Total LD vocabs imported : {len(preproc.getLinkedVocabs())}")
logger.info(f"Total default namespaces specified : {len(preproc.getDefaultNamespaces())}")

app = create_fuji_app(config)
app = create_app(config)
Limiter(get_remote_address, app=app.app, default_limits=[str(config["SERVICE"]["rate_limit"])])
# comment in case waitress is wished
# app.run(host=config['SERVICE']['service_host'], port=int(config['SERVICE']['service_port']),debug=False)
Expand Down
2 changes: 1 addition & 1 deletion fuji_server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from fuji_server import encoder


def create_fuji_app(config):
def create_app(config):
"""
Function which initializes the FUJI connexion flask app and returns it
"""
Expand Down

0 comments on commit 9db1259

Please sign in to comment.