Add PTZ nudges, configurable monitoring wall and lunar family dates
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ class Family:
|
||||
if item['birthDate'] and item['deathDate'] and item['birthDate'] > item['deathDate']:
|
||||
raise a.Problem('逝世日期不能早于出生日期')
|
||||
item['gender'] = data.get('gender', 'unknown')
|
||||
item['lifeStatus'] = data.get('lifeStatus', 'unknown')
|
||||
item['lifeStatus'] = data.get('lifeStatus', 'alive')
|
||||
if item['gender'] not in ('male', 'female', 'unknown') or item['lifeStatus'] not in ('alive', 'deceased', 'unknown'):
|
||||
raise a.Problem('人物属性不正确')
|
||||
if item['deathDate'] and item['lifeStatus'] != 'deceased':
|
||||
|
||||
Reference in New Issue
Block a user