Skip to content

Commit a6f43e6

Browse files
committed
Correct parsing of scoreResource list
1 parent 2d0126c commit a6f43e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sasctl/utils/modelMigration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def convertScoreCode(zPath, scoreResource, pythonScoreCode):
110110
for resource in scoreResource:
111111
parsedOldString = parsedOldString + [s for s in oldString if resource in s]
112112
# Remove duplicates, as .replace() checks for all instances
113-
oldString = list(set(oldString))
113+
oldString = list(set(parsedOldString))
114114
# Replace Viya 3.5 style with Viya 4 style
115115
newString = "settings.pickle_path + '{}'".format(scoreResource)
116116
for oldStr in oldString:

0 commit comments

Comments
 (0)