mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-04-24 23:56:21 +02:00
fix format
This commit is contained in:
parent
34ed3fbc60
commit
19faaad74f
1 changed files with 2 additions and 0 deletions
|
|
@ -613,6 +613,8 @@ def reorder_dict(data, key_order):
|
|||
|
||||
|
||||
def format_structure(structure, order=None):
|
||||
if not order:
|
||||
return structure
|
||||
if isinstance(structure, dict):
|
||||
if 'nodes' in structure:
|
||||
structure['nodes'] = format_structure(structure['nodes'], order)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue