From fc05572202832702be6633b6166fae6ff87c4310 Mon Sep 17 00:00:00 2001 From: androiddrew Date: Thu, 11 Jan 2018 15:16:43 -0500 Subject: [PATCH] Removing duplicate variable declaration. Changed factory function defaults --- .../{{cookiecutter.project_slug}}/app.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/app.py b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/app.py index 296624b..0989fd1 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/app.py +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/app.py @@ -26,15 +26,12 @@ _settings = { 'RENDERERS': [JSONRenderer()] } - -routes = routes - commands = sqlalchemy_backend.commands components = sqlalchemy_backend.components -def application_factory(settings={}): +def application_factory(settings={}, _settings=_settings, routes=routes, commands=commands, components=components): """Returns an instance of Cookie API""" app_settings = {**_settings, **settings} return App(settings=app_settings,