Skip to content

Commit

Permalink
Fixed incorrect get_table syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
samyarpotlapalli committed Aug 2, 2024
1 parent 67cb185 commit 66914de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sasctl/_services/score_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def create_score_definition(

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

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

0 comments on commit 66914de

Please sign in to comment.