From b6711cbe2b1c7afcf7cd88730ed3112e733a4258 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 26 Feb 2024 17:31:21 +0100 Subject: [PATCH] excel with only one line --- idhub/admin/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idhub/admin/forms.py b/idhub/admin/forms.py index 06d09e8..06ff222 100644 --- a/idhub/admin/forms.py +++ b/idhub/admin/forms.py @@ -225,7 +225,7 @@ class ImportForm(forms.Form): data_pd = df.fillna('').to_dict() - if not data_pd or not df.last_valid_index(): + if not data_pd or df.last_valid_index() is None: self.exception("The file you try to import is empty!") if not self._schema: