Added person and training type to csv title field

This commit is contained in:
neviyn 2020-06-04 10:50:12 +01:00
parent 216e5f2e82
commit 9a0d73ec97

View File

@ -95,7 +95,7 @@ data class Observation(
fun escapeSpecialCharacters(data: String): String {
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\"," +
"${roundScore(monitoring)},${roundScore(controlProcedural)},${roundScore(control)}," +
"${roundScore(conservatism)},${roundScore(teamworkCommunications)},${roundScore(teamworkLeadership)}," +