Skip to content

Commit

Permalink
feat: default submission sort by time & fix: go test cache (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zztrans authored Mar 8, 2024
1 parent 62f0e0c commit d5eca8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ check: gen-proto

.PHONY: test
test: gen-swagger check setup-db
go test -cover -v ./...
go test -cover -v -count=1 ./...

.PHONY: run-schedule
run-schedule: build check
Expand Down
5 changes: 3 additions & 2 deletions src/application/server/handler/submission.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ func getSubmissionList(ginCtx *gin.Context) {
}

options := mapper.GetSubmissionOptions{
Limit: &limit,
Offset: &offset,
Limit: &limit,
Offset: &offset,
OrderByColumns: []model.OrderByColumnOption{{Column: "create_at", Desc: true}},
}

submissions, total, svcErr := service.GetJudgeTaskSubmissionList(ginCtx, options)
Expand Down

0 comments on commit d5eca8d

Please sign in to comment.