From 3671f13cb60a732e0192ccf4d7c111bf509db6d0 Mon Sep 17 00:00:00 2001 From: caoxuyang Date: Thu, 30 Dec 2021 20:38:55 +0800 Subject: [PATCH] Fixed: condition error --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7e24e5e..dab15d7 100644 --- a/main.py +++ b/main.py @@ -462,8 +462,8 @@ def get_stats(github): stats = '' repositoryList = run_query(repositoryListQuery.substitute(username=username, id=id)) - - if (show_loc.lower() or showLocChart.lower()) in truthy: + + if show_loc.lower() in truthy or showLocChart.lower() in truthy: # This condition is written to calculate the lines of code because it is heavy process soo needs to be calculate once this will reduce the execution time yearly_data = get_yearly_data()