diff --git a/server/src/main/scala/services/exports/FlightExports.scala b/server/src/main/scala/services/exports/FlightExports.scala index 3ec4ef7b1..d18af40e8 100644 --- a/server/src/main/scala/services/exports/FlightExports.scala +++ b/server/src/main/scala/services/exports/FlightExports.scala @@ -57,7 +57,7 @@ object FlightExports { val maybePaxSummary = maybeManifest.flatMap(PassengerInfo.manifestToFlightManifestSummary) val natsSummary = s""""${nationalitiesFromSummary(maybePaxSummary)}"""" val agesSummary = s""""${ageRangesFromSummary(maybePaxSummary)}"""" - s"$regionName,$portName,$terminalName,$flightPart,$invalidApi,$splitsPart,$apiPart,$natsSummary,$agesSummary\n" + s"$regionName,$portName,$flightPart,$invalidApi,$splitsPart,$apiPart,$natsSummary,$agesSummary\n" } } } diff --git a/server/src/test/scala/services/exports/FlightExportsSpec.scala b/server/src/test/scala/services/exports/FlightExportsSpec.scala index 62ea8f56f..ae44981f2 100644 --- a/server/src/test/scala/services/exports/FlightExportsSpec.scala +++ b/server/src/test/scala/services/exports/FlightExportsSpec.scala @@ -52,9 +52,9 @@ class FlightExportsSpec extends CrunchTestLike { val result = Await.result(csvStream.runWith(Sink.seq), 1.second) val expected = List( - """North,MAN,T1,BA0002,T1,JFK,/,Scheduled,2020-06-02 01:05,,,,,,,2020-06-02 01:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","" - |North,MAN,T1,BA0001,T1,JFK,/,Scheduled,2020-06-01 21:00,,,,,,,2020-06-02 02:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","" - |North,MAN,T1,BA0003,T1,JFK,/,Scheduled,2020-06-03 01:05,,,,,,,2020-06-02 23:55,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","" + """North,MAN,BA0002,T1,JFK,/,Scheduled,2020-06-02 01:05,,,,,,,2020-06-02 01:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","" + |North,MAN,BA0001,T1,JFK,/,Scheduled,2020-06-01 21:00,,,,,,,2020-06-02 02:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","" + |North,MAN,BA0003,T1,JFK,/,Scheduled,2020-06-03 01:05,,,,,,,2020-06-02 23:55,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","" |""".stripMargin ) @@ -68,9 +68,9 @@ class FlightExportsSpec extends CrunchTestLike { val result = Await.result(csvStream.runWith(Sink.seq), 1.second) val expected = List( - """North,MAN,T1,BA0002,T1,JFK,/,Scheduled,2020-06-02 01:05,,,,,,,2020-06-02 01:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","" - |North,MAN,T1,BA0001,T1,JFK,/,Scheduled,2020-06-01 21:00,,,,,,,2020-06-02 02:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","" - |North,MAN,T1,BA0003,T1,JFK,/,Scheduled,2020-06-03 01:05,,,,,,,2020-06-02 23:55,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","" + """North,MAN,BA0002,T1,JFK,/,Scheduled,2020-06-02 01:05,,,,,,,2020-06-02 01:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","" + |North,MAN,BA0001,T1,JFK,/,Scheduled,2020-06-01 21:00,,,,,,,2020-06-02 02:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","" + |North,MAN,BA0003,T1,JFK,/,Scheduled,2020-06-03 01:05,,,,,,,2020-06-02 23:55,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","" |""".stripMargin )