Added person and training type to csv title field
This commit is contained in:
parent
216e5f2e82
commit
9a0d73ec97
@ -95,7 +95,7 @@ data class Observation(
|
|||||||
fun escapeSpecialCharacters(data: String): String {
|
fun escapeSpecialCharacters(data: String): String {
|
||||||
return data.replace("\"", "\"\"")
|
return data.replace("\"", "\"\"")
|
||||||
}
|
}
|
||||||
val dataPortion = "${date.toString("dd/MM/yyyy")},\"${scenarios.joinToString { it.title }}\"," +
|
val dataPortion = "${date.toString("dd/MM/yyyy")},\"$person, ${type.name} ${scenarios.joinToString { it.title }}\"," +
|
||||||
"\"Training\",\"Operations - Shift Operations\",\"${site.name}\",\"N/A\"," +
|
"\"Training\",\"Operations - Shift Operations\",\"${site.name}\",\"N/A\"," +
|
||||||
"${roundScore(monitoring)},${roundScore(controlProcedural)},${roundScore(control)}," +
|
"${roundScore(monitoring)},${roundScore(controlProcedural)},${roundScore(control)}," +
|
||||||
"${roundScore(conservatism)},${roundScore(teamworkCommunications)},${roundScore(teamworkLeadership)}," +
|
"${roundScore(conservatism)},${roundScore(teamworkCommunications)},${roundScore(teamworkLeadership)}," +
|
||||||
|
Loading…
Reference in New Issue
Block a user