fix location fetching

This commit is contained in:
pstruebi
2022-09-04 20:47:24 +02:00
parent fe0726c6f4
commit d2cc1af68f
2 changed files with 5 additions and 1 deletions

5
app.py
View File

@@ -53,7 +53,10 @@ def show_event(id):
attendees= ", ".join(
[a["emailAddress"]["name"] + " (" + a["emailAddress"]["name"] + ")" for a in event["attendees"]]
)
location= "<br/>".join(event["location"]["address"].values())
location= "<br/>" + event["location"].get("displayName", "")
if "address" in event["location"].keys():
location+= "<br/>".join(event["location"]["address"].values())
return render_template(
'show_event.html',

View File

@@ -14,6 +14,7 @@ class ProductionConfig(Config):
DATABASE_URI = '/home/site/wwwroot/users.db' # For azure app services. The content under wwwroot is durable, unless you delete your app service.
class DevelopmentConfig(Config):
CONFIRMATATION_EMAIL_ADD= "struebin.patrick@gmail.com"
DEBUG = True
class TestingConfig(Config):