Skip to content

Commit

Permalink
updated per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky committed Aug 26, 2024
1 parent 465d672 commit ad91183
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sempy_labs/migration/_create_pqt_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit ad91183

Please sign in to comment.