projects
/
weather.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix alert content filtering
[weather.git]
/
weather.py
diff --git
a/weather.py
b/weather.py
index
6b42a84
..
8df769e
100644
(file)
--- a/
weather.py
+++ b/
weather.py
@@
-336,7
+336,7
@@
def get_alert(
if alert:
if verbose: return alert
else:
if alert:
if verbose: return alert
else:
- if alert.find("\nN
ATIONAL WEATHER SERVICE
") == -1:
+ if alert.find("\nN
ational Weather Service
") == -1:
muted = False
else:
muted = True
muted = False
else:
muted = True
@@
-360,7
+360,7
@@
def get_alert(
if line.startswith("Expires:") \
and "Expires:" + valid_time > line:
return ""
if line.startswith("Expires:") \
and "Expires:" + valid_time > line:
return ""
- if muted and line.startswith("N
ATIONAL WEATHER SERVICE
"):
+ if muted and line.startswith("N
ational Weather Service
"):
muted = False
line = ""
elif line == "&&":
muted = False
line = ""
elif line == "&&":