From 38bfc598712531428ae0ca56c5f73a27a27a505e Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sat, 1 Jun 2013 14:17:13 -0400 Subject: [PATCH] Fixes #15: Factoid interface is bangin --- plugins/factoid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/factoid.go b/plugins/factoid.go index 47f14c1..43a7abd 100644 --- a/plugins/factoid.go +++ b/plugins/factoid.go @@ -468,7 +468,7 @@ func (p *FactoidPlugin) serveQuery(w http.ResponseWriter, r *http.Request) { if e := r.PostFormValue("entry"); e != "" { var entries []Factoid p.Coll.Find(bson.M{"trigger": e}).All(&entries) - context["Count"] = fmt.Sprintf("Found %d entries", len(entries)) + context["Count"] = fmt.Sprintf("%d", len(entries)) context["Entries"] = entries context["Search"] = e } else {