From 1fb1b590f1b3bb6c6393c4f14637f6984f827df6 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 20 Jan 2020 23:21:32 +0100 Subject: [PATCH] [DEV] store data when put modification --- 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 6a0cac5..42a8294 100644 --- a/back/src/data_interface.py +++ b/back/src/data_interface.py @@ -46,8 +46,10 @@ class DataInterface(): return True values = [] for elem in dir(self.model): + debug.info("check element : " + elem); if elem[:2] == "__": continue + debug.info(" ==> select"); values.append(elem) have_error = False for key in _data.keys(): @@ -150,6 +152,7 @@ class DataInterface(): if 'id' in elem.keys() \ and elem["id"] == _id: elem = _value + self.mark_to_store() return elem debug.warning("not found element: " + str(len(self.bdd))) return None