summaryrefslogtreecommitdiff
path: root/stats/enrich.go
diff options
context:
space:
mode:
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)