Merge pull request #27 from T-BENZIN/development

~ Changed time_now function to return string instead of datetime object
This commit is contained in:
Hatt 2025-03-16 13:05:24 +01:00 committed by GitHub
commit ed1995d7f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,8 +7,8 @@ WEATHER_API_KEY = environ.get('WEATHER_API_KEY')
URL = 'http://api.weatherapi.com/v1'
def time_now() -> datetime:
return datetime.now(timezone.utc)
def time_now() -> str:
return str(datetime.now(timezone.utc))
def get_current_weather(location: str) -> str: