fix logs so they show both rep ids

This commit is contained in:
Miloš Jovanović 2026-09-24 19:45:08 -07:00
parent c615023de4
commit ccb6b3277d
2 changed files with 4 additions and 2 deletions

View file

@ -17,7 +17,7 @@ func (s *Server) reconcile(ctx context.Context, runID int64, rep *User, dept str
} }
if len(reps) > 1 { if len(reps) > 1 {
log.Printf("run %d: %d reps for chapter %d dept %q; splitting round-robin across %v", log.Printf("run %d: %d reps for chapter %d dept %q; splitting round-robin across %v",
runID, len(reps), rep.ChapterID, dept, reps[0]) runID, len(reps), rep.ChapterID, dept, reps)
} }
members, err := s.store.EligibleMembers(rep.ChapterID, dept) members, err := s.store.EligibleMembers(rep.ChapterID, dept)

View file

@ -1,3 +1,5 @@
ST_KEY='5dc47e1aaa92c7cc8b9a627dd405ea8426475cc268623df0ad20112c47859c85ad4eca5a9cf3441ea1129c114d9126aab17ef220a15f12227611ade0a85b3167' ST_API_KEY='5dc47e1aaa92c7cc8b9a627dd405ea8426475cc268623df0ad20112c47859c85ad4eca5a9cf3441ea1129c114d9126aab17ef220a15f12227611ade0a85b3167'
ST=https://api.solidarity.tech/v1 ST=https://api.solidarity.tech/v1
ELIGIBLE_APPOINTMENTS="senate,recall"
DRY_RUN=1
curl -sS -g -H "Authorization: Bearer $ST_KEY" -H "Accept: application/json" "$ST/$1" curl -sS -g -H "Authorization: Bearer $ST_KEY" -H "Accept: application/json" "$ST/$1"