Correct default_atypes to match what's generated
authorJeremy Stanley <fungi@yuggoth.org>
Sat, 25 Jul 2020 15:26:16 +0000 (15:26 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sun, 26 Jul 2020 19:04:33 +0000 (19:04 +0000)
Kevin Monceaux reported a regression with the 2.4 release. Running
with the -a/--alert option and no limited --atypes or atypes
override in weatherrc resulted in a message about undefined URLs
and no normal output. This problem crept in when hard-coding alert
types in the correlator after ditching the woefully unmaintained
zonecatalog.curr.tar data source (commit 8a37edd).

Update default_atypes so that it covers all relevant non-forecast
URLs the correlate routine embeds.

weather.py

index bdda3ee..803525f 100644 (file)
@@ -400,14 +400,9 @@ def get_options(config):
             + "flash_flood_watch," \
             + "flood_statement," \
             + "flood_warning," \
-            + "marine_weather_statement," \
-            + "river_statement," \
             + "severe_thunderstorm_warning," \
             + "severe_weather_statement," \
-            + "short_term_forecast," \
-            + "special_marine_warning," \
             + "special_weather_statement," \
-            + "tornado_warning," \
             + "urgent_weather_message"
     option_parser.add_option("--atypes",
         dest="atypes",