Skip to content

Commit f5f7e00

Browse files
committed
[#100] Count levels of testing correctly
This commit breaks 360Giving template generation, but points out the underlying problem that nedes fixing.
1 parent dceac82 commit f5f7e00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flattentool/schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ def parse_schema_dict(self, parent_path, schema_dict, parent_id_fields=None, tit
177177
warn('Field {} does not have a title, skipping it and all its children.'.format(property_name))
178178
else:
179179
# This code only works for arrays that are at 0 or 1 layer of nesting
180-
assert len(parent_path.replace('/0/', '/').split('/')) <= 2
180+
print(parent_path)
181+
assert parent_path == ''
181182
sub_sheet.add_field(title+':'+child_title)
182183
else:
183184
sub_sheet.add_field(parent_path+property_name+'/0/'+field)

0 commit comments

Comments
 (0)