From ede10a179d54199d0992aa2bbd9dfef341e4aaa8 Mon Sep 17 00:00:00 2001 From: Emilie Date: Fri, 30 Dec 2016 11:46:12 +0100 Subject: [PATCH] [Timesheet] : strip value of register id --- .../network/management/commands/import-ircam-matricule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5