From 1a6752f9d92791073312a7cc234e6d1397ae81b9 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Mon, 8 Aug 2016 11:36:57 +0200 Subject: [PATCH] 9596: Some events are not shown in familymaps page. --- gramps/plugins/webreport/narrativeweb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index 92594ef98..8e2aaa73f 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -1088,10 +1088,12 @@ class BasePage: if place_lat_long is None: return place_handle = place.get_handle() + event_date = event.get_date_object() # 0 = latitude, 1 = longitude, 2 - placetitle, # 3 = place handle, 4 = event date, 5 = event type - found = any(data[3] == place_handle for data in place_lat_long) + found = any(data[3] == place_handle and data[4] == event_date + for data in place_lat_long) if not found: placetitle = _pd.display(self.r_db, place) latitude = place.get_latitude() @@ -1099,7 +1101,6 @@ class BasePage: if latitude and longitude: latitude, longitude = conv_lat_lon(latitude, longitude, "D.D8") if latitude is not None: - event_date = event.get_date_object() etype = event.get_type() # only allow Birth, Death, Census, Marriage,