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

Add denylist

This commit is contained in:
Felix Krause
2021-09-27 19:08:42 +02:00
parent ae98afa6e9
commit fd08f48ff3

View File

@@ -90,6 +90,7 @@ class API
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 denylisted_other_keys.include?(row[:other_key])
structured[row[:other_key]] ||= {}
structured[row[:other_key]][row[:bucket]] = {