fetching the right data this time at least

This commit is contained in:
Felix 2019-08-14 16:36:02 +01:00
parent b6c0e1b6dd
commit e2960a3fcf

View file

@ -63,9 +63,9 @@ export class MoreStuffComponent implements OnInit {
if (useRange == true) { if (useRange == true) {
let ranged_data = []; let ranged_data = [];
for (var i = 0; i < ranged_data.data.count; i++) { for (var i = 0; i < result.data.count; i++) {
result.data.map(item => { result.data.map(item => {
if (ranged_data.data[i].date >= start_range && ranged_data.data[i].date <= end_range) { if (result.data[i].date >= start_range && result.data[i].date <= end_range) {
ranged_data.push({ ranged_data.push({
t: item.date, t: item.date,
r: item.value > 1000000 ? (item.value / 1000000) + 10 : (item.value / 100000) + 5, r: item.value > 1000000 ? (item.value / 1000000) + 10 : (item.value / 100000) + 5,