mirror of
https://github.com/idanoo/go-mastodon-stats
synced 2025-07-01 22:02:20 +00:00
Post weekly instead
This commit is contained in:
parent
f2c7022469
commit
5a884fe3d9
3 changed files with 12 additions and 28 deletions
|
@ -4,9 +4,6 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"golang.org/x/text/cases"
|
||||
"golang.org/x/text/language"
|
||||
)
|
||||
|
||||
// Stores out metric/row data
|
||||
|
@ -117,8 +114,5 @@ func getUserCounts() ([]metric, error) {
|
|||
}
|
||||
|
||||
func getPrintableString(m metric) string {
|
||||
caser := cases.Title(language.English)
|
||||
titleStr := caser.String(m.Service)
|
||||
|
||||
return fmt.Sprintf("%s: %d", titleStr, m.MetricValue)
|
||||
return fmt.Sprintf("%s: %d", SERVICE_LINKS[m.Service], m.MetricValue)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue