Skip to content

Commit

Permalink
SCHEMACODE: Update loop logic to use dict instead of list
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Apr 14, 2022
1 parent f04b47f commit 24c0aa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/schemacode/schemacode/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def make_filename_template(schema, n_dupes_to_combine=6, **kwargs):
paragraph += "\t\t{}/\n".format(datatype)

# Unique filename patterns
for group in schema["rules"]["datatypes"][datatype]:
for group in schema["rules"]["datatypes"][datatype].values():
string = "\t\t\t"
for ent in entity_order:
if "enum" in schema["objects"]["entities"][ent].keys():
Expand Down Expand Up @@ -302,7 +302,7 @@ def make_entity_table(schema, tablefmt="github", **kwargs):
duplicate_row_counter = 0

# each dtype could have multiple specs
for i_dtype_spec, dtype_spec in enumerate(dtype_specs):
for dtype_spec in dtype_specs.values():
suffixes = dtype_spec.get("suffixes")

# Skip this part of the schema if no suffixes are found.
Expand Down

0 comments on commit 24c0aa4

Please sign in to comment.