Skip to content

Commit 2a58f5f

Browse files
samyarpotlapallismlindauer
authored andcommitted
Fixed incorrect get_table syntax
1 parent 26fe616 commit 2a58f5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sasctl/_services/score_definitions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def create_score_definition(
102102

103103
# Optional mapping - Maps the variables in the data to the variables of the score object. It's not necessary to create a score definition.
104104

105-
table = cls._cas_management.get_table(server_name, library_name, table_name)
105+
table = cls._cas_management.get_table(table_name, library_name, server_name)
106106
if not table and not table_file:
107107
raise HTTPError(
108108
f"This table may not exist in CAS. Please include the `table_file` argument in the function call if it doesn't exist."
@@ -111,7 +111,7 @@ def create_score_definition(
111111
cls._cas_management.upload_file(
112112
str(table_file), table_name
113113
) # do I need to add a check if the file doesn't exist or does upload_file take care of that?
114-
table = cls._cas_management.get_table(server_name, library_name, table_name)
114+
table = cls._cas_management.get_table(table_name, library_name, server_name)
115115
if not table:
116116
raise HTTPError(
117117
f"The file failed to upload properly or another error occurred."

0 commit comments

Comments
 (0)