only notify when there is a warning
This commit is contained in:
parent
d58d9811c6
commit
891ce89d2b
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -29,8 +29,8 @@ for day in ["heute", "morgen", "uebermorgen"]:
|
|||
warnings = [tag.get_text() for tag in soup.find_all("p", class_="warnung_text")]
|
||||
text = "\n".join(warnings)
|
||||
if day not in cache or text != cache[day]:
|
||||
# if text:
|
||||
notify(text)
|
||||
if text:
|
||||
notify(text)
|
||||
cache[day] = text
|
||||
print(text)
|
||||
|
||||
|
|
Reference in a new issue