From 66914de2866f8a65e51599b0371ae85329c29038 Mon Sep 17 00:00:00 2001 From: samyarpotlapalli Date: Fri, 2 Aug 2024 16:17:03 -0400 Subject: [PATCH] Fixed incorrect get_table syntax --- src/sasctl/_services/score_definitions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sasctl/_services/score_definitions.py b/src/sasctl/_services/score_definitions.py index 22c96af4..4d31e31c 100644 --- a/src/sasctl/_services/score_definitions.py +++ b/src/sasctl/_services/score_definitions.py @@ -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." @@ -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."