Skip to content

Commit

Permalink
cli: make table name inference more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
zargot committed Nov 27, 2024
1 parent 8768e5f commit ab41edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/odm_validation/tools/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def import_xlsx(src_file, dst_dir) -> List[str]:
def get_sheet_table_id(schema, sheet_name) -> Optional[str]:
table_ids = list(schema['schema'].keys())
for table_id in table_ids:
if sheet_name.endswith(' ' + table_id):
if sheet_name.endswith(table_id):
return table_id


Expand Down

0 comments on commit ab41edb

Please sign in to comment.