src/repositories/receipts.go
BeforeProposed
+1−1
1414 }
1515 seen[row.Segment][row.Sequence]=row.Played
1616 old,exists:=chosen[row.Segment]
17 if !exists || row.Sequence<old.Sequence { chosen[row.Segment]=row }
17 if !exists || row.Sequence>old.Sequence { chosen[row.Segment]=row }
1818 }
1919 result:=map[string]int64{}
2020 for id,row:=range chosen { result[id]=row.Played }