fix draw to show qt

main
bel 2023-10-26 18:23:55 -06:00
parent 596c20d76c
commit 23614057a3
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#! /bin/bash
cd "$(dirname "$(realpath "$BASH_SOURCE")")"
go run . -http=:8080 \
go run . -http=:8081 \
-foo reg \
-like-after 1023-08 \
-group-date ^....-.. \

View File

@ -17,6 +17,7 @@ import (
"github.com/go-echarts/go-echarts/v2/charts"
"github.com/go-echarts/go-echarts/v2/opts"
"gogs.inhome.blapointe.com/ana-ledger/ana"
"gogs.inhome.blapointe.com/ana-ledger/ledger"
)
@ -105,7 +106,7 @@ func main() {
}
predictionDuration := time.Hour * 24 * 365 / 12 * time.Duration(predictionMonths)
if r.URL.Query().Get("predictContributions") != "" {
register, err = ledger.RegisterWithContributionPrediction(register, predictionDuration)
register, err = ana.RegisterWithContributionPrediction(register, predictionDuration)
if err != nil {
panic(err)
}
@ -116,7 +117,7 @@ func main() {
if err != nil {
panic(err)
}
register, err = ledger.RegisterWithCompoundingInterestPrediction(register, predictionDuration, name, rate)
register, err = ana.RegisterWithCompoundingInterestPrediction(register, predictionDuration, name, rate)
if err != nil {
panic(err)
}
@ -127,7 +128,7 @@ func main() {
if err != nil {
panic(err)
}
bpis, err = ledger.BPIsWithFixedGrowthPrediction(bpis, predictionDuration, currency, rate)
bpis, err = ana.BPIsWithFixedGrowthPrediction(bpis, predictionDuration, currency, rate)
if err != nil {
panic(err)
}