catch one more case of title normalisation

This commit is contained in:
mappu 2017-10-29 15:09:53 +13:00
parent 1bfefdccb3
commit f934c2917f
1 changed files with 1 additions and 1 deletions

2
DB.go
View File

@ -92,7 +92,7 @@ func (this *WikiDB) GetRevision(revId int) (*Article, error) {
}
func (this *WikiDB) GetLatestVersion(title string) (*Article, error) {
row := this.db.QueryRow(`SELECT articles.* FROM articles WHERE article = (SELECT id FROM titles WHERE title = ?) ORDER BY modified DESC LIMIT 1`, title)
row := this.db.QueryRow(`SELECT articles.* FROM articles WHERE article = (SELECT id FROM titles WHERE title = ?) ORDER BY modified DESC LIMIT 1`, this.normaliseTitle(title))
return this.parseArticle(row)
}