Refactor FileRead and ProcessData classes; update recipe handling in FromIQS and Job classes
- Changed the site constant in FileRead to "els" and updated the monInURL accordingly. - Modified FromIQS to include 'TBI01' in the SQL query for job names. - Updated Job class to include 'TBI01' in the mapping for MET08DDUPSP1TBI. - Made GetDefault method in Description static and added GetDefaultJsonElement method. - Refactored GetExtractResult in FileRead to improve clarity and efficiency, including changes to how logistics and JSON elements are handled. - Removed unused fields and methods in ProcessData, simplifying the class structure. - Added a method to add print files in Run class to streamline file handling. - Updated AdaptationTesting to prevent directory creation for paths containing "10.". - Improved string comparison in recipes-and-patterns.js for case-insensitive matching.
This commit is contained in:
@ -35,7 +35,7 @@ function getValue(tool, patternSize, recipe, pattern, json) {
|
||||
debug += 'patternSize: ' + toolMatches[index].patternSize +
|
||||
'; recipe: ' + toolMatches[index].recipe +
|
||||
'; pattern: ' + toolMatches[index].pattern + ';~';
|
||||
if (toolMatches[index].recipe.localeCompare(recipe, ['en-US'], { sensitivity: 'base' }) === 0) {
|
||||
if (toolMatches[index].recipe.toLowerCase() == recipe.toLowerCase()) {
|
||||
matches++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user