diff options
| author | Scott Gasch <[email protected]> | 2021-11-01 14:10:02 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-11-01 14:10:02 -0700 |
| commit | acacd9d2e942d084631e99e94ee430fd26ae9893 (patch) | |
| tree | 56bedbc8b3237a6f10264f3b448a176bcdcb89ab /cached/weather_forecast.py | |
| parent | eb9e6df32ed696158bf34dba6464277b648f5c74 (diff) | |
Overrides + debugging modules / functions in logging.
Diffstat (limited to 'cached/weather_forecast.py')
| -rw-r--r-- | cached/weather_forecast.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cached/weather_forecast.py b/cached/weather_forecast.py index 2509f43..7855658 100644 --- a/cached/weather_forecast.py +++ b/cached/weather_forecast.py @@ -9,6 +9,7 @@ import urllib.request import astral # type: ignore from astral.sun import sun # type: ignore from bs4 import BeautifulSoup # type: ignore +from overrides import overrides import pytz import argparse_utils @@ -129,6 +130,7 @@ class CachedDetailedWeatherForecast(object): ) @classmethod + @overrides def load(cls): if persistent.was_file_written_within_n_seconds( config.config['weather_forecast_cachefile'], @@ -140,6 +142,7 @@ class CachedDetailedWeatherForecast(object): return cls(weather_data) return None + @overrides def save(self): import pickle with open(config.config['weather_forecast_cachefile'], 'wb') as wf: |
