From 057e894bb127158ef672d2c57e87647ad31c2628 Mon Sep 17 00:00:00 2001 From: Vidya Ramakrishnan Date: Tue, 26 Dec 2023 09:28:59 +0530 Subject: [PATCH] Add modifiedTime. Remove eventAttendanceMode property as it not recognized by google email markup tester (#1945) --- funnel/transports/email/send.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/funnel/transports/email/send.py b/funnel/transports/email/send.py index a2de80964..14e38a2e0 100644 --- a/funnel/transports/email/send.py +++ b/funnel/transports/email/send.py @@ -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', @@ -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, @@ -127,6 +124,7 @@ def jsonld_event_reservation(rsvp: Rsvp) -> dict[str, object]: }, }, 'modifyReservationUrl': rsvp.project.absolute_url, + 'modifiedTime': rsvp.updated_at, 'numSeats': '1', }