summaryrefslogtreecommitdiff
path: root/stats/enrich.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-05-22 20:06:56 +0200
committerewy <ewy0@protonmail.com>2026-05-22 20:06:56 +0200
commit094846c15f4148c166ac297e26a1248bab0ab5c7 (patch)
treed9f671bb0d34b5be52db62636278f5d3e5657283 /stats/enrich.go
parent3ea1ed1362984619b182c0ddf9a6b1dc7ba5bcd0 (diff)
add views, expand api, add windows opening thing overridemain
Diffstat (limited to 'stats/enrich.go')
-rw-r--r--stats/enrich.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/stats/enrich.go b/stats/enrich.go
index 40e91ec..192729f 100644
--- a/stats/enrich.go
+++ b/stats/enrich.go
@@ -1,6 +1,7 @@
package stats
import (
+ "github.com/spf13/pflag"
"sts2stats/model"
"sts2stats/spool"
"sts2stats/storage"
@@ -36,11 +37,13 @@ var Enrichers = map[string]Enricher{
"card choice": EnrichWrap(EnrichCardChoice),
}
+var SteamId = pflag.IntP("steamid", "s", 0, "steamid to match players to")
+
func Enrich(run model.Run) error {
startTime := time.Now()
id := run.RunId[:4]
wg := sync.WaitGroup{}
- st := NewRunStat(run)
+ st := NewRunStat(run, *SteamId)
for k, e := range Enrichers {
wg.Go(func() {
spool.Debug("[%v] Starting %v enrichment\n", id, k)