Add search terms to the moderation page

* Closes: #22
This commit is contained in:
Las Zenow 2017-02-04 01:28:10 +00:00
parent fcf9b1eb8d
commit 8e82ee3702
5 changed files with 26 additions and 15 deletions

View file

@ -75,9 +75,9 @@ func (db *DB) GetBooksIter() Iter {
return getBooksIter(booksColl)
}
func (db *DB) GetNewBooks(length int, start int) (books []Book, num int, err error) {
func (db *DB) GetNewBooks(query string, length int, start int) (books []Book, num int, err error) {
booksColl := db.session.DB(db.name).C(books_coll)
return getNewBooks(booksColl, length, start)
return getNewBooks(booksColl, query, length, start)
}
func (db *DB) GetBookId(id string) (Book, error) {