Skip to content

Commit 3d7e09b

Browse files
Update MaxRow
1 parent 7e1555e commit 3d7e09b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

custom/conf/app.example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ LEVEL = Info
13351335
;MAX_FILE_SIZE = 524288
13361336
;;
13371337
;; Maximum allowed rows to render CSV files. (Set to 0 for no limit)
1338-
;MAX_ROWS = 2000
1338+
;MAX_ROWS = 5000
13391339

13401340
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
13411341
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

modules/markup/csv/csv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (r Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.W
111111
return err
112112
}
113113
element := "td"
114-
if row == 1 {
114+
if row == 0 {
115115
element = "th"
116116
}
117117
if err := writeField(tmpBlock, element, "line-num", strconv.Itoa(row)); err != nil {

modules/setting/ui.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ var UI = struct {
112112
MaxRows int
113113
}{
114114
MaxFileSize: 524288,
115-
MaxRows: 2000,
115+
MaxRows: 5000,
116116
},
117117
Admin: struct {
118118
UserPagingNum int

0 commit comments

Comments
 (0)