From ab41edb6213690c185cb29197ede85d50a2feeeb Mon Sep 17 00:00:00 2001 From: zargot Date: Mon, 4 Nov 2024 14:00:22 -0500 Subject: [PATCH] cli: make table name inference more flexible --- src/odm_validation/tools/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/odm_validation/tools/validate.py b/src/odm_validation/tools/validate.py index 37dc256c..7c4c1661 100755 --- a/src/odm_validation/tools/validate.py +++ b/src/odm_validation/tools/validate.py @@ -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