Skip to content

Commit

Permalink
fixed issue 288
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky committed Nov 19, 2024
1 parent 5b2d53e commit 551eae3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/sempy_labs/_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def initialize_git_connection(workspace: Optional[str] = None) -> str:
The Fabric workspace name.
Defaults to None which resolves to the workspace of the attached lakehouse
or if no lakehouse attached, resolves to the workspace of the notebook.
Returns
-------
str
Expand All @@ -250,7 +250,7 @@ def initialize_git_connection(workspace: Optional[str] = None) -> str:
f"{icons.green_dot} The '{workspace}' workspace git connection has been initialized."
)

return response.json()['remoteCommitHash']
return response.json()["remoteCommitHash"]


def commit_to_git(
Expand Down
17 changes: 2 additions & 15 deletions src/sempy_labs/_model_bpa.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,23 +400,10 @@ def translate_using_spark(rule_file):
dfExport["Timestamp"] = now
dfExport["RunId"] = runId
dfExport["Configured By"] = configured_by

dfExport["RunId"] = dfExport["RunId"].astype("int")

colName = "Capacity Name"
dfExport.insert(0, colName, dfExport.pop(colName))
colName = "Capacity Id"
dfExport.insert(1, colName, dfExport.pop(colName))
colName = "Workspace Name"
dfExport.insert(2, colName, dfExport.pop(colName))
colName = "Workspace Id"
dfExport.insert(3, colName, dfExport.pop(colName))
colName = "Dataset Name"
dfExport.insert(4, colName, dfExport.pop(colName))
colName = "Configured By"
dfExport.insert(5, colName, dfExport.pop(colName))

dfExport.columns = dfExport.columns.str.replace(" ", "_")
dfExport = dfExport[list(icons.bpa_schema.keys())]
dfExport["RunId"] = dfExport["RunId"].astype("int")
schema = {
key.replace(" ", "_"): value for key, value in icons.bpa_schema.items()
}
Expand Down

0 comments on commit 551eae3

Please sign in to comment.