mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
bug fix on top-n logic (prevent dups)
This commit is contained in:
parent
8d4014727b
commit
f55c092cc1
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ func (self *Brand) TopNCat(src_bitmap IBitmap, n int, category *IntSet) []Pair {
|
|||
|
||||
results = append(results, o)
|
||||
|
||||
for i := x; i < len(self.rankings); i++ {
|
||||
for i := x + 1; i < len(self.rankings); i++ {
|
||||
counter = counter + 1
|
||||
o = self.rankings[i]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue