Use the tags of the active books only
This commit is contained in:
parent
66a4a2de4c
commit
2797ba97f1
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ func (d *DB) GetTags() (tagsList, error) {
|
|||
"return count;" +
|
||||
"}"
|
||||
var result tagsList
|
||||
_, err := d.books.Find(nil).MapReduce(&mr, &result)
|
||||
_, err := d.books.Find(bson.M{"active": true}).MapReduce(&mr, &result)
|
||||
if err == nil {
|
||||
sort.Sort(result)
|
||||
}
|
||||
|
|
Reference in a new issue