Skip to content

Commit 536011a

Browse files
committed
Merge pull request #66 from classrank/settings-hotfix
Replace references to app.settings with settings in classrank.py
2 parents f4e0276 + 34e6fd4 commit 536011a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classrank.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def parser():
2828
"static_path": os.path.join(os.path.dirname(__file__), "classrank/static"),
2929
"template_path": os.path.join(os.path.dirname(__file__), "classrank/templates")
3030
}
31-
app.settings['debug'] = args.debug
3231

3332
try:
3433
with open(args.settings) as f:
@@ -37,6 +36,7 @@ def parser():
3736
# no additional settings file so we ignore
3837
pass
3938

39+
settings['debug'] == args.debug
4040
db_config = settings['db_config']
4141
del settings['db_config']
4242
cr = ClassRankApp(args.connection, routes, **settings)

0 commit comments

Comments
 (0)