Service mode and no cover detection

This commit is contained in:
alexgobbo
2024-11-05 14:54:12 +01:00
parent 93844b103e
commit bbd6822754
11 changed files with 154 additions and 39 deletions

View File

@@ -10,7 +10,10 @@ samples_info = []
def set_samples_info(info):
global samples_info
if (is_string(info)):
info = json.loads(info)
if info:
info = json.loads(info)
else:
info=[]
if not is_list(info):
raise Exception("Sample info must be a list (given object type is " + str(type(info)) + ")")
#Sanitize list