Skip to content

Commit

Permalink
Fix another one or two mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
GenieTim committed Jan 8, 2025
1 parent 4522623 commit d29db81
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ protected JSONObject findSimilarMatch(JSONArray foundObjects, String objectType,
if (selectionHelper.get(key) instanceof JSONObject && selectionHelper.getJSONObject(key).has("en-US")) {
requiredMatches += 1;
keysToMatch.add(key);
} else if (selectionHelper.get(key) instanceof String && !((String) selectionHelper.get(key)).contains("DataShot")) {
} else if (selectionHelper.get(key) instanceof String && !((String) selectionHelper.get(key)).contains("Created by DataShot")) {
keysToMatch.add(key);
requiredMatches += 1;
}
Expand Down Expand Up @@ -547,7 +547,7 @@ protected JSONObject findSimilarMatch(JSONArray foundObjects, String objectType,
return foundObjects.getJSONObject(carefulPossiblyCorrectIndices.get(0));
}
} else {
log.warn("Did not find any similar matches. Required matches: " + requiredMatches);
log.warn("Did not find any similar matches in " + objectsToCompare.size() + " results of " + objectType + ". Required matches: " + requiredMatches);
}
return null;
}
Expand Down Expand Up @@ -1386,7 +1386,7 @@ public JSONObject wrapForCreation(JSONObject inner, String objectType, String ma
* @return the object with the adjusted/added fields
*/
public JSONObject addDefaultValuesForCreation(JSONObject inner, JSONObject pool) {
return addDefaultValuesForCreation(inner, pool);
return addDefaultValuesForCreation(inner, pool, null);
}

/**
Expand Down

0 comments on commit d29db81

Please sign in to comment.