From 9a08e0ce76c6aa7adfe91ba69a5a709f936204f8 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 9 Dec 2021 21:53:14 +0800 Subject: [PATCH] fix stats --- bot.go | 10 +++++----- version.go | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bot.go b/bot.go index 9aa996d..be534d4 100644 --- a/bot.go +++ b/bot.go @@ -1176,7 +1176,7 @@ func botGraphMoney(m *tb.Message) { return } dateFloat := float64(d.Year()) + float64(d.Month()-1)/12 - valueFloat := float64(stat.CompanyValueLastQuarter) + valueFloat := float64(stat.Money) pt := plotter.XY{ X: dateFloat, Y: valueFloat / unitFactor, @@ -1267,7 +1267,7 @@ func botGraphIncome(m *tb.Message) { return } dateFloat := float64(d.Year()) + float64(d.Month()-1)/12 - valueFloat := float64(stat.CompanyValueLastQuarter) + valueFloat := float64(stat.Income) pt := plotter.XY{ X: dateFloat, Y: valueFloat / unitFactor, @@ -1358,7 +1358,7 @@ func botGraphLoan(m *tb.Message) { return } dateFloat := float64(d.Year()) + float64(d.Month()-1)/12 - valueFloat := float64(stat.CompanyValueLastQuarter) + valueFloat := float64(stat.Loan) pt := plotter.XY{ X: dateFloat, Y: valueFloat / unitFactor, @@ -1449,7 +1449,7 @@ func botGraphPerf(m *tb.Message) { return } dateFloat := float64(d.Year()) + float64(d.Month()-1)/12 - valueFloat := float64(stat.CompanyValueLastQuarter) + valueFloat := float64(stat.PerformancePreviousQuarter) pt := plotter.XY{ X: dateFloat, Y: valueFloat / unitFactor, @@ -1460,7 +1460,7 @@ func botGraphPerf(m *tb.Message) { } p := plot.New() - p.Title.Text = "Company Loan" + p.Title.Text = "Company Perf" p.X.Label.Text = "Year" if unitName != "" { p.Y.Label.Text = fmt.Sprintf("Value (%s)", unitName) diff --git a/version.go b/version.go index b6bd079..dad5b6e 100644 --- a/version.go +++ b/version.go @@ -1,6 +1,6 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "be1712b" -var buildstamp = "2021-12-09_13:41:53" -var commits = "247" -var version = "be1712b-b247 - 2021-12-09_13:41:53" +var githash = "4cecee1" +var buildstamp = "2021-12-09_13:53:06" +var commits = "248" +var version = "4cecee1-b248 - 2021-12-09_13:53:06"