diff options
| author | Scott Gasch <[email protected]> | 2022-02-03 14:18:37 -0800 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-02-03 14:18:37 -0800 |
| commit | 713a609bd19d491de03debf8a4a6ddf2540b13dc (patch) | |
| tree | 6593978162d3c11c3a54e44a770aded4abc79704 /cached | |
| parent | eb1c6392095947b3205c4d52cd9b1507e6cd776b (diff) | |
Change settings in flake8 and black.
Diffstat (limited to 'cached')
| -rw-r--r-- | cached/weather_forecast.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cached/weather_forecast.py b/cached/weather_forecast.py index 58f53c3..807f36d 100644 --- a/cached/weather_forecast.py +++ b/cached/weather_forecast.py @@ -81,7 +81,8 @@ class CachedDetailedWeatherForecast(persistent.Persistent): last_dt = now dt = now for (day, txt) in zip( - forecast.find_all('b'), forecast.find_all(class_='col-sm-10 forecast-text') + forecast.find_all('b'), + forecast.find_all(class_='col-sm-10 forecast-text'), ): last_dt = dt try: @@ -91,9 +92,7 @@ class CachedDetailedWeatherForecast(persistent.Persistent): assert dt is not None # Compute sunrise/sunset times on dt. - city = astral.LocationInfo( - "Bellevue", "USA", "US/Pacific", 47.653, -122.171 - ) + city = astral.LocationInfo("Bellevue", "USA", "US/Pacific", 47.653, -122.171) s = sun(city.observer, date=dt, tzinfo=pytz.timezone("US/Pacific")) sunrise = s['sunrise'] sunset = s['sunset'] |
