Commit 080eb26c authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Fix a bug in the script check_people_author_moa.py

parent e85b7966
......@@ -126,7 +126,7 @@ def check_events(id_project,
if nrows == 0:
print last_name, start_date, end_date, '→ no %s event' % event
if len(team_ids) != 0:
if len(team_ids) != 1:
print "Team change during the period."
print "Have a look and fix it by hand.\n"
continue
......@@ -134,8 +134,8 @@ def check_events(id_project,
data = dict(id_events=id_evt_event,
id_people=id_people,
id_projects=id_project,
id_teams=team_ids[0],
start_date= exp_end,
id_teams=list(team_ids)[0],
start_date= exp_start,
end_date=exp_end)
fix_event(**data)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment