changeset 3449:654f5e2d94cf

afd: new format adapted
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 24 May 2019 12:43:07 +0200
parents d0278e7399fb
children 213b703bdd85
files client/src/store/fairwayavailability.js
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/store/fairwayavailability.js	Fri May 24 12:36:54 2019 +0200
+++ b/client/src/store/fairwayavailability.js	Fri May 24 12:43:07 2019 +0200
@@ -12,6 +12,8 @@
  * Thomas Junk <thomas.junk@intevation.de>
  */
 
+/*eslint no-unused-vars: ["error", { "varsIgnorePattern": "_" }]*/
+
 import { HTTP } from "@/lib/http";
 import {
   format,
@@ -105,7 +107,7 @@
  * for display of diagrams
  *
  * Incoming csv Format
- * #label,# >= LDC [h],# < 230.00 [h],# >= 230.00 [h],# >= 250.00 [h]
+ * #label,# <LDC ,# >= LDC [h],# < 230.00 [h],# >= 230.00 [h],# >= 250.00 [h]
  * 05-2019,215.500,0.000,0.000,215.500
  *
  * Format:
@@ -117,7 +119,7 @@
 const transformAFD = csv => {
   return csv.map(e => {
     const result = e.split(",");
-    let [label, ldc, lower, middle, highestLevel] = result;
+    let [label, _, ldc, lower, middle, highestLevel] = result;
     let levelsWithSum = [
       {
         height: Number(lower),