Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #113 from kintone-labs/dev_v0.14.0
Browse files Browse the repository at this point in the history
SSR-2310 Develop and realease v0.14.0
  • Loading branch information
nmanhit authored Aug 24, 2022
2 parents 1867c26 + 3b9c8db commit 919420d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ printf "name,age\nJohn,37\nJane,29" | cli-kintone --import -a <APP_ID> -d <FQDN>
## Restrictions
* The limit of each file size for uploading to attachments field is 10MB.
* Client certificates cannot be used with cli-kintone.
* The following record data cannot be retrieved: Field group, Blank space, Label, Border
* The following record data cannot be retrieved: Field group, Blank space, Label, Border, Status, Assignee, Category
## Restriction of Encode/Decode
* Windows command prompt may not display characters correctly like "譁�蟄怜喧縺�".
Expand Down
2 changes: 1 addition & 1 deletion export.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func getRecordsForSeekMethod(app *kintone.App, id uint64, fields []string, isRec
func getRow(app *kintone.App) (Row, error) {
var row Row
// retrieve field list
fields, err := getFields(app)
fields, err := getSupportedFields(app)
if err != nil {
return row, err
}
Expand Down
18 changes: 17 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type Cell struct {
Type string
IsSubField bool
Table string
Index int
Index int
}

// Row config
Expand All @@ -88,6 +88,22 @@ func getFields(app *kintone.App) (map[string]*kintone.FieldInfo, error) {
return fields, nil
}

func getSupportedFields(app *kintone.App) (map[string]*kintone.FieldInfo, error) {
fields, err := getFields(app)
if err != nil {
return nil, err
}
for key, field := range fields {
switch field.Type {
case "STATUS_ASSIGNEE", "CATEGORY", "STATUS":
delete(fields, key)
default:
continue
}
}
return fields, nil
}

// set column information from fieldinfo
// This function is deprecated, replace using function getCell
func getColumn(code string, fields map[string]*kintone.FieldInfo) *Column {
Expand Down

0 comments on commit 919420d

Please sign in to comment.