Skip to content

Commit

Permalink
Update MaxRow
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriquerPimentel committed Apr 10, 2024
1 parent 25e686d commit c742090
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom/conf/app.example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@ LEVEL = Info
;MAX_FILE_SIZE = 524288
;;
;; Maximum allowed rows to render CSV files. (Set to 0 for no limit)
;MAX_ROWS = 2000
;MAX_ROWS = 5000

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down
2 changes: 1 addition & 1 deletion modules/markup/csv/csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (r Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.W
return err
}
element := "td"
if row == 1 {
if row == 0 {
element = "th"
}
if err := writeField(tmpBlock, element, "line-num", strconv.Itoa(row)); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion modules/setting/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ var UI = struct {
MaxRows int
}{
MaxFileSize: 524288,
MaxRows: 2000,
MaxRows: 5000,
},
Admin: struct {
UserPagingNum int
Expand Down

0 comments on commit c742090

Please sign in to comment.