Reduce the number of items per page on moderation
For performance issues.
This commit is contained in:
parent
2648e8156c
commit
1e56da1c01
2 changed files with 4 additions and 4 deletions
|
@ -11,10 +11,6 @@ import (
|
||||||
"gitlab.com/trantor/trantor/lib/parser"
|
"gitlab.com/trantor/trantor/lib/parser"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
newItemsPage = 10
|
|
||||||
)
|
|
||||||
|
|
||||||
func deleteHandler(h handler) {
|
func deleteHandler(h handler) {
|
||||||
ids := strings.Split(mux.Vars(h.r)["ids"], "/")
|
ids := strings.Split(mux.Vars(h.r)["ids"], "/")
|
||||||
submissionID := mux.Vars(h.r)["submissionID"]
|
submissionID := mux.Vars(h.r)["submissionID"]
|
||||||
|
|
|
@ -10,6 +10,10 @@ import (
|
||||||
"gitlab.com/trantor/trantor/lib/database"
|
"gitlab.com/trantor/trantor/lib/database"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
newItemsPage = 5
|
||||||
|
)
|
||||||
|
|
||||||
func submissionHandler(h handler) {
|
func submissionHandler(h handler) {
|
||||||
var data submissionData
|
var data submissionData
|
||||||
var err error
|
var err error
|
||||||
|
|
Reference in a new issue