forgot page inc
This commit is contained in:
parent
7a3961bdf5
commit
8a8d7dc819
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
@ -444,6 +444,7 @@ func renderFile(w gemini.ResponseWriter, r *gemini.Request, client TreeManagerCl
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
db.Inc("page_counter." + id)
|
||||||
pageCounter, found := db.Get("page_counter." + id)
|
pageCounter, found := db.Get("page_counter." + id)
|
||||||
if !found {
|
if !found {
|
||||||
pageCounter = "1"
|
pageCounter = "1"
|
||||||
|
|
Loading…
Reference in a new issue