In Narweb, Relationship to Center person reversed (#606)

Fixes #10553
This commit is contained in:
Serge Noiraud 2018-05-01 02:46:29 +02:00 committed by Sam Manzi
parent 4dc67910fd
commit db92ab7d5a

View File

@ -61,6 +61,7 @@ from gramps.gen.display.name import displayer as _nd
from gramps.gen.utils.db import get_birth_or_fallback, get_death_or_fallback from gramps.gen.utils.db import get_birth_or_fallback, get_death_or_fallback
from gramps.plugins.lib.libhtml import Html from gramps.plugins.lib.libhtml import Html
from gramps.gen.utils.place import conv_lat_lon from gramps.gen.utils.place import conv_lat_lon
from gramps.gen.proxy import LivingProxyDb
#------------------------------------------------ #------------------------------------------------
# specific narrative web import # specific narrative web import
@ -1720,11 +1721,13 @@ class PersonPages(BasePage):
self.report.options['pid']) self.report.options['pid'])
if center_person is None: if center_person is None:
return return
if (int(self.report.options['living_people']) !=
LivingProxyDb.MODE_INCLUDE_ALL):
if probably_alive(center_person, self.r_db, Today()): if probably_alive(center_person, self.r_db, Today()):
return return
relationship = self.rel_class.get_one_relationship(self.r_db, relationship = self.rel_class.get_one_relationship(self.r_db,
self.person, center_person,
center_person) self.person)
if relationship == "": # No relation to display if relationship == "": # No relation to display
return return