diff --git a/src/sempy_labs/migration/_create_pqt_file.py b/src/sempy_labs/migration/_create_pqt_file.py index 921448cd..029aeba8 100644 --- a/src/sempy_labs/migration/_create_pqt_file.py +++ b/src/sempy_labs/migration/_create_pqt_file.py @@ -139,8 +139,8 @@ def __init__( query = 'let\n\tSource = ""\nin\n\tSource' sb = f"{sb}{query};" - for e_name, v in expr_map.items(): - expr = v[1] + for e_name, kind_expr in expr_map.items(): + expr = kind_expr[1] sb = f'{sb}\nshared #"{e_name}" = {expr};' with open(mdFilePath, "w") as file: @@ -155,8 +155,8 @@ def __init__( queryMetadata.append( QueryMetadata(t_name, None, None, None, True, False) ) - for e_name, v in expr_map.items(): - e_kind = v[0] + for e_name, kind_expr in expr_map.items(): + e_kind = kind_expr[0] if e_kind == "M": queryMetadata.append( QueryMetadata(e_name, None, None, None, True, False)