Small fixes

This commit is contained in:
Ruud
2012-01-06 17:08:45 +01:00
parent 1c75bfb9b0
commit 168a9a2f95
6 changed files with 15 additions and 10 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ def runCouchPotato(options, base_path, args):
Env.set('options', options)
# Determine debug
debug = options.debug or Env.setting('debug', default = False)
debug = options.debug or Env.setting('debug', default = False, type = 'bool')
Env.set('debug', debug)
# Only run once when debugging
@@ -146,7 +146,7 @@ def runCouchPotato(options, base_path, args):
from couchpotato import app
api_key = Env.setting('api_key')
url_base = '/' + Env.setting('url_base').lstrip('/') if Env.setting('url_base') else ''
reloader = debug and not options.daemonize
reloader = debug is True and not options.daemonize
# Basic config
app.secret_key = api_key