From cfc93ff35cb082eb456d88c0ba76a3529c7a6a85 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Wed, 19 Dec 2018 07:33:30 -0800 Subject: [PATCH] Correctly parse include_only_with_project_file when set to false #161 --- tests/samples/configs/has_everything.cfg | 1 + wakatime/arguments.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/samples/configs/has_everything.cfg b/tests/samples/configs/has_everything.cfg index 1711e0e..8cde60a 100644 --- a/tests/samples/configs/has_everything.cfg +++ b/tests/samples/configs/has_everything.cfg @@ -9,6 +9,7 @@ exclude = ^/etc/ include = .* +include_only_with_project_file = false offline = false proxy = https://user:pass@localhost:8080 no_ssl_verify = false diff --git a/wakatime/arguments.py b/wakatime/arguments.py index 140393c..4fb2da0 100644 --- a/wakatime/arguments.py +++ b/wakatime/arguments.py @@ -275,7 +275,7 @@ def parse_arguments(): except TypeError: # pragma: nocover pass if not args.include_only_with_project_file and configs.has_option('settings', 'include_only_with_project_file'): - args.include_only_with_project_file = configs.get('settings', 'include_only_with_project_file') + args.include_only_with_project_file = configs.get('settings', 'include_only_with_project_file') == 'true' if not args.include: args.include = [] if configs.has_option('settings', 'include'):