1
0
mirror of https://github.com/elisspace/FxLifeSheet.git synced 2026-08-29 15:44:00 +00:00

Restore frontend.html functionality

This commit is contained in:
Felix Krause
2021-11-12 17:55:36 +01:00
parent 2425d56a15
commit 8baefff94d
2 changed files with 3 additions and 2 deletions

View File

@@ -94,7 +94,8 @@ class API
structured = {}
flat.each do |row|
next if row[:avg_value].nil? # some rows can be nil
next if row[:other_key].include?("swarmLocation") || row[:other_key].include?("locationL") || ["weight"].include?(row[:other_key])
next if row[:other_key].start_with?("swarmCheckinCoordinatesL")
next if row[:other_key].start_with?("locationL") # Telegram locations
next if denylisted_other_keys.include?(row[:other_key])
structured[row[:other_key]] ||= {}

View File

@@ -205,7 +205,7 @@ function updateBucketByOption() {
allBucketData[0]["y"] = dataToRender.map(({ diff }) => diff);
console.log(allBucketData)
bucketLayout["title"] = `${bucket} being ${bucket1} had the following effects on that day in %`
bucketLayout["title"] = `${bucket} being ${bucket1} compared to ${bucket2} had the following effects on that day in %`
Plotly.redraw('bucketGraph');
}