Fixed: condition error

This commit is contained in:
caoxuyang
2021-12-30 20:38:55 +08:00
parent c4738cea12
commit 3671f13cb6

View File

@@ -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()