From 469ebd7d4e61d205e5c35a59b458388bbfb208f6 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 21 Jan 2020 23:56:44 +0100 Subject: [PATCH] [DEBUG] correct order with none type --- back/src/data_interface.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/back/src/data_interface.py b/back/src/data_interface.py index ec38949..7020eee 100644 --- a/back/src/data_interface.py +++ b/back/src/data_interface.py @@ -288,6 +288,9 @@ class DataInterface(): if value_order not in elem.keys(): out_unclassable.append(elem); continue + if elem[value_order] == None: + out_unclassable.append(elem); + continue out.append(elem); out = sorted(out, key=lambda x: x[value_order]) if len(_order) > 1: