Use the tags of the active books only

This commit is contained in:
Las Zenow 2013-03-08 16:17:38 +01:00
parent 66a4a2de4c
commit 2797ba97f1

View file

@ -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)
}