Skip to content

Commit

Permalink
Merge pull request #66 from classrank/settings-hotfix
Browse files Browse the repository at this point in the history
Replace references to app.settings with settings in classrank.py
  • Loading branch information
joshuamorton committed May 4, 2016
2 parents f4e0276 + 34e6fd4 commit 536011a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classrank.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def parser():
"static_path": os.path.join(os.path.dirname(__file__), "classrank/static"),
"template_path": os.path.join(os.path.dirname(__file__), "classrank/templates")
}
app.settings['debug'] = args.debug

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

settings['debug'] == args.debug
db_config = settings['db_config']
del settings['db_config']
cr = ClassRankApp(args.connection, routes, **settings)
Expand Down

0 comments on commit 536011a

Please sign in to comment.