YouEclipse / waka-box-go

📊 Update profile README / pinned gist to contain your weekly WakaTime stats. This is a Golang implementation, see the original version https://github.com/matchai/waka-box. 将你的 WakaTime 每周语言使用统计显示在 profile README / pined gist。
Apache License 2.0
169 stars 144 forks source link

cannot unmarshal number 1715.0 into Go struct field StatsData.data.daily_average of type int64 #38

Open ZexinLi0w0 opened 1 year ago

ZexinLi0w0 commented 1 year ago

Still have the same issue as #37 on commit 4542143b42f704f75a6b9f5285920886de980547.

Full log is shown as below:

panic: wakabox.GetStats: Error getting Current Stats: unmarshal error  :json: cannot unmarshal number 1715.0 into Go struct field StatsData.data.daily_average of type int64

goroutine 1 [running]:
main.main()
    /home/runner/work/ZexinLi0w0/ZexinLi0w0/waka-box-go/cmd/box/main.go:48 +0x7d6
Error: Process completed with exit code 2.
overstarry commented 1 year ago

update github.com/YouEclipse/wakatime-go v0.1.2-0.20221018190731-e3134bb99788