MCPcopy Create free account
hub / github.com/piccolo-orm/piccolo / convert_list

Function convert_list

piccolo/engine/sqlite.py:268–280  ·  view source on GitHub ↗
(list_value: list)

Source from the content-addressed store, hash-verified

266 parsed = load_json(value.decode("utf8"))
267
268 def convert_list(list_value: list):
269 output = []
270
271 for value in list_value:
272 if isinstance(value, list):
273 # For nested arrays
274 output.append(convert_list(value))
275 elif isinstance(value, str):
276 output.append(converter(value))
277 else:
278 output.append(value)
279
280 return output
281
282 if isinstance(parsed, list):
283 return convert_list(parsed)

Callers 1

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected