Merge pull request #27 from T-BENZIN/development

~ Changed time_now function to return string instead of datetime object
This commit is contained in:
2025-03-16 13:05:24 +01:00
committed by GitHub
+2 -2
View File
@@ -7,8 +7,8 @@ WEATHER_API_KEY = environ.get('WEATHER_API_KEY')
URL = 'http://api.weatherapi.com/v1' URL = 'http://api.weatherapi.com/v1'
def time_now() -> datetime: def time_now() -> str:
return datetime.now(timezone.utc) return str(datetime.now(timezone.utc))
def get_current_weather(location: str) -> str: def get_current_weather(location: str) -> str: