Fix: skip slack alert if there was no spend (#5998)

Co-authored-by: María Paz Cuturi <paz@MacBook-Pro-de-Paz.local>
This commit is contained in:
Paz 2024-10-01 12:02:16 -03:00 committed by GitHub
parent 2a7e1e970d
commit 8225880af0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1630,7 +1630,7 @@ Model Info:
start_date=start_date.strftime("%Y-%m-%d"),
end_date=todays_date.strftime("%Y-%m-%d"),
)
if _resp is None:
if _resp is None or _resp == ([], []):
return
spend_per_team, spend_per_tag = _resp