Filter out status entries that don't have a mood associated from average_mood
This commit is contained in:
parent
7b7b27bd7d
commit
a1505bed44
1 changed files with 2 additions and 1 deletions
|
@ -51,6 +51,7 @@ def average_mood(context, start, end=None):
|
|||
moods = list()
|
||||
|
||||
for status in status_list:
|
||||
if status.mood:
|
||||
moods.append(status.mood.value)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue