Add download counter on each book

* Closes: #40
This commit is contained in:
Las Zenow 2018-11-19 03:14:26 +00:00
parent fb399ac973
commit 8b996803c8
5 changed files with 30 additions and 5 deletions

View file

@ -93,6 +93,10 @@ func (db *roDB) IncDownloads(ID string) error {
return nil
}
func (db *roDB) GetDownloadCounter(ID string) (int, error) {
return db.db.GetDownloadCounter(ID)
}
func (db *roDB) GetFrontPage() FrontPage {
return db.db.GetFrontPage()
}