From 341a68c04537b0553c4d91d3c486a60f4b4ee0bd Mon Sep 17 00:00:00 2001 From: AllfatherHatt Date: Sun, 16 Mar 2025 13:41:15 +0100 Subject: [PATCH] Trying to debug the weather, so many mayflies --- reginaldCog/weather.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reginaldCog/weather.py b/reginaldCog/weather.py index d0ded52..18acab1 100644 --- a/reginaldCog/weather.py +++ b/reginaldCog/weather.py @@ -19,10 +19,9 @@ def get_current_weather(location: str) -> str: def get_weather_forecast(location: str, days: int = 14, dt: str = '2025-03-24') -> str: weather = Weather(location=location) response = weather.forecast(days=days, dt=dt) - - print("DEBUG: Forecast API Response: ", json.dumps(response, indent=2)) - - return json.dumps(response) + + print(f"DEBUG: Forecast API Response: {response}") + return json.dumps(weather.forecast(days=days, dt=dt)) class Weather: