From 261eb5660fff7134611ece63981baf84d1648774 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Wed, 27 Feb 2019 20:11:43 +0100 Subject: [PATCH] Using units from settings-file --- Calendar/OwmForecasts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Calendar/OwmForecasts.py b/Calendar/OwmForecasts.py index c4282f6..71ad866 100644 --- a/Calendar/OwmForecasts.py +++ b/Calendar/OwmForecasts.py @@ -2,10 +2,11 @@ from WeatherForecast import WeatherForecast from WeatherInterface import WeatherInterface import pyowm from datetime import datetime +from settings import units class OwmForecasts (WeatherInterface): """Fetches weather through the Openweathermap-api.""" - def __init__ (self, api_key, units): + def __init__ (self, api_key): self.api = pyowm.OWM(api_key) self.units = units