fix location fetching
This commit is contained in:
5
app.py
5
app.py
@@ -53,7 +53,10 @@ def show_event(id):
|
|||||||
attendees= ", ".join(
|
attendees= ", ".join(
|
||||||
[a["emailAddress"]["name"] + " (" + a["emailAddress"]["name"] + ")" for a in event["attendees"]]
|
[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(
|
return render_template(
|
||||||
'show_event.html',
|
'show_event.html',
|
||||||
|
|||||||
@@ -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.
|
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):
|
class DevelopmentConfig(Config):
|
||||||
|
CONFIRMATATION_EMAIL_ADD= "struebin.patrick@gmail.com"
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
class TestingConfig(Config):
|
class TestingConfig(Config):
|
||||||
|
|||||||
Reference in New Issue
Block a user