description format from config
This commit is contained in:
+5
-2
@@ -69,8 +69,11 @@ def make_event(person, year):
|
||||
|
||||
lang_params = {'language': event_config['language']}
|
||||
|
||||
if 'birthday_no_year' not in person:
|
||||
description += ', %d %s' % (age(person, year), zodiac_sign(person))
|
||||
if 'birthday_no_year' in person:
|
||||
description = description.replace('{age}', '')
|
||||
|
||||
description = description.format(
|
||||
age=age(person, year), zodiac=zodiac_sign(person))
|
||||
|
||||
event = Event()
|
||||
event.add('uid', sha1(person['name'] + ' birthday ' + str(year)))
|
||||
|
||||
Reference in New Issue
Block a user