~ Changed time_now function to return string instead of datetime object
This commit is contained in:
parent
e3c931650b
commit
52113f93ae
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user