From b52798ca460cb486ceecd200880c26cd7a6cc1d3 Mon Sep 17 00:00:00 2001 From: Emil Abraham Date: Thu, 11 Apr 2019 21:11:44 -0400 Subject: [PATCH] adjusted for merge with changes to generatorobject --- src/app/statistics/statistics.component.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/app/statistics/statistics.component.ts b/src/app/statistics/statistics.component.ts index 9811e1f..58e7664 100644 --- a/src/app/statistics/statistics.component.ts +++ b/src/app/statistics/statistics.component.ts @@ -176,9 +176,9 @@ export class StatisticsComponent implements OnInit { }); - this.generator = await this.data2.getGeneratorStatus(gen_id,jsonToken); + this.generator = await this.data2.getGeneratorState(gen_id,jsonToken); - if (this.generator.fault_count != 0) + if (this.generator.fault_count == 0) { console.log("hi"); } @@ -188,9 +188,7 @@ export class StatisticsComponent implements OnInit { { this.statusChange(this.testArray[i]); - } - console.log(this.isOvercrank); - console.log(this.isOvercrank); + } }