Merge pull request #37 from gautamkrishnar/patch-2

Ignoring zero graph, fixes: #35
This commit is contained in:
Athul Cyriac Ajay 2020-09-09 00:15:00 +05:30 committed by GitHub
commit ec79c6dacb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,8 @@ def get_stats() -> str:
print("The Data seems to be empty. Please wait for a day for the data to be filled in.")
return '```text\nNo Activity tracked this Week\n```'
for lang in lang_data[:5]:
if lang['hours'] == 0 and lang['minutes'] == 0:
continue
lth = len(lang['name'])
ln_text = len(lang['text'])
# following line provides a neat finish