Ignoring zero graph, fixes: #35

This commit is contained in:
Gautam krishna R
2020-09-08 12:16:10 +05:30
committed by GitHub
parent 27fc6f7586
commit 8605a9760e

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