Skip to content

Commit

Permalink
Add modifiedTime. Remove eventAttendanceMode property as it not recog…
Browse files Browse the repository at this point in the history
…nized by google email markup tester (#1945)
  • Loading branch information
vidya-ram authored Dec 26, 2023
1 parent 7b9531e commit 057e894
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions funnel/transports/email/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ def jsonld_event_reservation(rsvp: Rsvp) -> dict[str, object]:
'addressCountry': venue.country,
}
location['address'] = postal_address
event_mode = "https://schema.org/OfflineEventAttendanceMode"
else:
location = {
"@type": "VirtualLocation",
"url": rsvp.project.absolute_url,
}
event_mode = "https://schema.org/OnlineEventAttendanceMode"
return {
'@context': 'https://schema.org',
'@type': 'EventReservation',
Expand All @@ -109,7 +107,6 @@ def jsonld_event_reservation(rsvp: Rsvp) -> dict[str, object]:
if rsvp.state.NO
else 'https://schema.org/ReservationPending'
),
"eventAttendanceMode": event_mode,
'underName': {
'@type': 'Person',
'name': rsvp.participant.fullname,
Expand All @@ -127,6 +124,7 @@ def jsonld_event_reservation(rsvp: Rsvp) -> dict[str, object]:
},
},
'modifyReservationUrl': rsvp.project.absolute_url,
'modifiedTime': rsvp.updated_at,
'numSeats': '1',
}

Expand Down

0 comments on commit 057e894

Please sign in to comment.