Skip to content

Commit

Permalink
refactor(admin): remove unused comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed Dec 20, 2020
1 parent 4887057 commit 9837be4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 0 additions & 2 deletions plugins/admin/modules/paginator/paginator.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ func Get(cfg Config) types.PaginatorAttribute {

paginator := template2.Default().Paginator().(*components.PaginatorAttribute)

fmt.Println("cfg.Size", cfg.Size, "cfg.Param.PageSizeInt", cfg.Param.PageSizeInt)

totalPage := int(math.Ceil(float64(cfg.Size) / float64(cfg.Param.PageSizeInt)))

if cfg.Param.PageInt == 1 {
Expand Down
10 changes: 5 additions & 5 deletions plugins/admin/modules/parameter/parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ func (param Parameters) DeletePK() Parameters {
}

func (param Parameters) PK() string {
pk:=param.PKs()
if len(pk) > 0 {
return param.PKs[0]
}
return ""
pks := param.PKs()
if len(pks) > 0 {
return pks[0]
}
return ""
}

func (param Parameters) IsAll() bool {
Expand Down
2 changes: 0 additions & 2 deletions plugins/admin/modules/table/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,6 @@ func (tb *DefaultTable) getDataFromDatabase(params parameter.Parameters) (PanelI
}
}

fmt.Println("params.SortField", params.SortField)

queryCmd := ""
if connection.Name() == db.DriverMssql && len(ids) == 0 {
queryCmd = fmt.Sprintf(queryStatement, tb.Info.Table, params.SortField, params.SortType,
Expand Down

0 comments on commit 9837be4

Please sign in to comment.