From b9b8dd3ccf9ec9851ed65846f4061c15bb10f3ce Mon Sep 17 00:00:00 2001 From: Ameya Shenoy Date: Mon, 12 Aug 2019 03:01:58 +0530 Subject: [PATCH] fix(OPEN_IN_NEW_TAB): get from environment var Signed-off-by: Ameya Shenoy --- bukuserver/server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bukuserver/server.py b/bukuserver/server.py index cea0eeb..654979b 100644 --- a/bukuserver/server.py +++ b/bukuserver/server.py @@ -224,6 +224,9 @@ def create_app(db_file=None): disable_favicon = os.getenv('BUKUSERVER_DISABLE_FAVICON', 'false') app.config['BUKUSERVER_DISABLE_FAVICON'] = \ False if disable_favicon.lower() in ['false', '0'] else bool(disable_favicon) + open_in_new_tab = os.getenv('BUKUSERVER_OPEN_IN_NEW_TAB', 'false') + app.config['BUKUSERVER_OPEN_IN_NEW_TAB'] = \ + False if open_in_new_tab.lower() in ['false', '0'] else bool(open_in_new_tab) app.config['BUKUSERVER_DB_FILE'] = os.getenv('BUKUSERVER_DB_FILE') or db_file bukudb = BukuDb(dbfile=app.config['BUKUSERVER_DB_FILE']) app.app_context().push()