Merge pull request #37 from gautamkrishnar/patch-2
Ignoring zero graph, fixes: #35
This commit is contained in:
commit
ec79c6dacb
2
main.py
2
main.py
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user