From cc4e7ae52830b93c10c10439748161879299f784 Mon Sep 17 00:00:00 2001 From: AllfatherHatt Date: Sun, 16 Mar 2025 13:22:48 +0100 Subject: [PATCH] No more naughty, all is fine --- reginaldCog/weather.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reginaldCog/weather.py b/reginaldCog/weather.py index 0968a24..86e6b79 100644 --- a/reginaldCog/weather.py +++ b/reginaldCog/weather.py @@ -24,8 +24,8 @@ def get_weather_forecast(location: str, days: int = 14, dt: str = '2025-03-24') class Weather: def __init__(self, location: str): self.__location = location - self.api_key = "f6e5cb73cae242deb2b63903250803" - + self.api_key = environ.get('WEATHER_API_KEY') + @property def location(self) -> str: return self.__location