forgot page inc

This commit is contained in:
Arnas Udovic 2024-07-18 21:37:55 +03:00
parent 7a3961bdf5
commit 8a8d7dc819

View file

@ -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"