From 08af99370f27d235006bb317ec3b9df5e5699b78 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 26 Feb 2024 17:50:22 +0100 Subject: [PATCH] remove columns empty --- idhub/admin/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/idhub/admin/forms.py b/idhub/admin/forms.py index 06ff222..d3af58d 100644 --- a/idhub/admin/forms.py +++ b/idhub/admin/forms.py @@ -234,7 +234,8 @@ class ImportForm(forms.Form): for n in range(df.last_valid_index()+1): row = {} for k in data_pd.keys(): - row[k] = data_pd[k][n] or '' + if data_pd[k][n]: + row[k] = data_pd[k][n] user = self.validate_jsonld(n, row) self.rows[user] = row