Skip to content

Commit

Permalink
Fixed Python dict creation...
Browse files Browse the repository at this point in the history
... extra [ ] were added at both ends of a dict.
  • Loading branch information
fredericsimard authored Aug 2, 2024
1 parent e10bebb commit 565c9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/process_csv_in_github_action.swift
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func redirectArray(for rawData: String) -> String {
valueKeyPairs.append(prefix + currentString + suffix)
}

let returnString : String = "[\(valueKeyPairs.joined(separator: keyValuePairsJoiner))]" // [{"id": 2036}, {"id": 2037}, {"id": 2038}]
let returnString : String = "\(valueKeyPairs.joined(separator: keyValuePairsJoiner))" // Ex.: {"id": 2036}, {"id": 2037}, {"id": 2038} AKA a Python dict
return returnString
}

Expand Down

0 comments on commit 565c9c0

Please sign in to comment.