Minor improvements including consistently setting override to True when loading dotenv

This commit is contained in:
Edward Donner
2025-03-01 15:03:18 -05:00
parent 41d958dba6
commit 8338dfc248
26 changed files with 89 additions and 43 deletions

View File

@@ -16,3 +16,14 @@ def hello() -> str:
data = response.json()
city, region, country = data['city'], data['region'], data['country']
return f"Hello from {city}, {region}, {country}!!"
# New - added thanks to student Tue H.!
@app.function(image=image, region="eu")
def hello_europe() -> str:
import requests
response = requests.get('https://ipinfo.io/json')
data = response.json()
city, region, country = data['city'], data['region'], data['country']
return f"Hello from {city}, {region}, {country}!!"