Merge branch 'master' into nanterre-recette
This commit is contained in:
commit
cac348eb79
|
@ -23,7 +23,7 @@ def test_synchronize_federations(settings, app, nanterre_classic_family, admin):
|
|||
response = response.click(u'Synchroniser les fédérations')
|
||||
response = response.click(u'Nouvel import')
|
||||
response.form.set('app_id', 'technocarte')
|
||||
content = '\n'.join(map(str, [f['kevin'].id + 1000, f['marie'].id + 1000, '1222']))
|
||||
content = '\n'.join(map(str, [f['kevin'].id + 1000, f['marie'].id + 1000, '99999']))
|
||||
response.form.set('csv_uploaded', Upload('federations.csv', content, 'application/octet-stream'))
|
||||
response = response.form.submit().follow()
|
||||
assert len(response.pyquery('table#result-list tbody tr')) == 1
|
||||
|
|
|
@ -279,10 +279,10 @@ class PersonSearch(object):
|
|||
year += 1900
|
||||
else:
|
||||
year += 2000
|
||||
if len(birthdate) == 3:
|
||||
if birthdate['day']:
|
||||
before = after = datetime.date(
|
||||
int(birthdate['year']), int(birthdate['month']), int(birthdate['day']))
|
||||
elif len(birthdate) == 2:
|
||||
elif birthdate['month']:
|
||||
after = datetime.date(int(birthdate['year']), int(birthdate['month']), 1)
|
||||
before = ((after + datetime.timedelta(days=31)).replace(day=1)
|
||||
- datetime.timedelta(days=1))
|
||||
|
|
Loading…
Reference in New Issue