From c3ce0b6d353b39bc9b4495ec240aced0a481d8cf Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sat, 28 Dec 2019 21:50:40 +0100 Subject: [PATCH] [DEBUG] correct the bdd reset every start --- back/src/app_video.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/back/src/app_video.py b/back/src/app_video.py index a4a3312..8657536 100755 --- a/back/src/app_video.py +++ b/back/src/app_video.py @@ -115,7 +115,8 @@ default_values_type = [ def add_interface(_name, _default_value = None): interface = data_interface.DataInterface(_name, os.path.join(tools.get_run_path(), app.config['REST_DATA'], "bdd_" + _name + ".json")) if _default_value != None: - interface.reset_with_value(_default_value); + if interface.count() == 0: + interface.reset_with_value(_default_value); data_global_elements.add_interface(_name, interface) add_interface(data_global_elements.API_DATA)