From: Emilie Date: Fri, 30 Dec 2016 10:46:12 +0000 (+0100) Subject: [Timesheet] : strip value of register id X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ede10a179d54199d0992aa2bbd9dfef341e4aaa8;p=mezzo.git [Timesheet] : strip value of register id --- diff --git a/app/organization/network/management/commands/import-ircam-matricule.py b/app/organization/network/management/commands/import-ircam-matricule.py index fbe98d38..2e105b35 100644 --- a/app/organization/network/management/commands/import-ircam-matricule.py +++ b/app/organization/network/management/commands/import-ircam-matricule.py @@ -48,7 +48,7 @@ class Command(BaseCommand): self.first_row = self.sheet.row(0) num_cols = self.sheet.ncols for row_idx in range(0, self.sheet.nrows): # Iterate through rows - cell_id = self.sheet.cell(row_idx, 0).value + cell_id = self.sheet.cell(row_idx, 0).value.strip() cell_last_name = self.sheet.cell(row_idx, 1).value cell_first_name = self.sheet.cell(row_idx, 2).value self.update_register_id(cell_id, cell_last_name, cell_first_name)