aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhelper.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/helper.js b/helper.js
index f72ffa7..31a4f2f 100755
--- a/helper.js
+++ b/helper.js
@@ -24,8 +24,9 @@ async function ssvToObj(ssv) {
const lines = ssv.split("\n").slice(1, -1);
for (const line of lines) {
const [t, u, c] = line.split(";");
- if (obj.hasOwnProperty(u)) obj[u].push(`${c} - ${t}`);
- else obj[u] = [`${c} ~ ${t} als 10-Jahres Prognose`];
+ const str = `${t} zur 10-Jahres Prognose: ${c}`;
+ if (obj.hasOwnProperty(u)) obj[u].push(str);
+ else obj[u] = [str];
}
return obj;
}