Update weather.py

This commit is contained in:
Miupro 2021-10-31 03:30:27 +01:00
parent 4cb4cf7be2
commit 23a7f967c4

View File

@ -28,7 +28,7 @@ class WeatherWrapper:
class WeatherScoreCalculator:
def calc_weather_score(self, event):
now = datetime.datetime.now().replace(microsecond=0).isoformat() + datetime.timedelta(days=1)
now = (datetime.datetime.now().replace(microsecond=0) + datetime.timedelta(days=1)).isoformat()
location = event.location_coordinates
location_string = f'{location[0]}'+f','+f'{location[1]}'