Change to go with fallback update
svn: r13882
This commit is contained in:
parent
699dcb13fe
commit
d0ae0cdaea
@ -58,6 +58,7 @@ import DbState
|
|||||||
import DateHandler
|
import DateHandler
|
||||||
from gen.lib.date import Date as GDate, Today
|
from gen.lib.date import Date as GDate, Today
|
||||||
import gen.lib
|
import gen.lib
|
||||||
|
from gen.utils import get_birth_or_fallback, get_death_or_fallback
|
||||||
from gen.plug import BasePluginManager
|
from gen.plug import BasePluginManager
|
||||||
from cli.grampscli import CLIManager
|
from cli.grampscli import CLIManager
|
||||||
|
|
||||||
@ -476,14 +477,14 @@ def get_title(place):
|
|||||||
|
|
||||||
def person_get_birth_date(person):
|
def person_get_birth_date(person):
|
||||||
db = DjangoDb()
|
db = DjangoDb()
|
||||||
event = db.get_birth_or_fallback(person)
|
event = get_birth_or_fallback(db, person)
|
||||||
if event:
|
if event:
|
||||||
return event.date
|
return event.date
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def person_get_death_date(person):
|
def person_get_death_date(person):
|
||||||
db = DjangoDb()
|
db = DjangoDb()
|
||||||
event = db.get_death_or_fallback(person)
|
event = get_death_or_fallback(db, person)
|
||||||
if event:
|
if event:
|
||||||
return event.date
|
return event.date
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user