Reduce the number of items per page on moderation

For performance issues.
This commit is contained in:
Las Zenow 2021-04-29 16:35:58 +00:00
parent 2648e8156c
commit 1e56da1c01
2 changed files with 4 additions and 4 deletions

View file

@ -11,10 +11,6 @@ import (
"gitlab.com/trantor/trantor/lib/parser"
)
const (
newItemsPage = 10
)
func deleteHandler(h handler) {
ids := strings.Split(mux.Vars(h.r)["ids"], "/")
submissionID := mux.Vars(h.r)["submissionID"]

View file

@ -10,6 +10,10 @@ import (
"gitlab.com/trantor/trantor/lib/database"
)
const (
newItemsPage = 5
)
func submissionHandler(h handler) {
var data submissionData
var err error