Ignoring zero graph, fixes: #35
This commit is contained in:
parent
27fc6f7586
commit
8605a9760e
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