Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sondregronas committed Jul 26, 2024
1 parent 24c961d commit 95a890a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions BookingSystem/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,22 @@ def debug_login() -> flask.Response:
class App(gunicorn.app.base.BaseApplication):
def __init__(self):
start_routine()
self.options = {}
self.application = create_app()
super().__init__()


def load_config(self):
config = {key: value for key, value in self.options.items()
if key in self.cfg.settings and value is not None}
for key, value in config.items():
self.cfg.set(key.lower(), value)


def load(self):
return self.application


app = App()
except Exception as e:
start_routine()
Expand Down

0 comments on commit 95a890a

Please sign in to comment.