This commit is contained in:
Simon Ding
2024-09-20 14:27:49 +08:00
parent 8af3ffccd3
commit f5c977224b
3 changed files with 38 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ func ParseDoulist(doulistUrl string) (*importlist.Response, error) {
continue
} else {
n := ppp[1]
n1, err := strconv.Atoi(n)
n1, err := strconv.Atoi(strings.TrimSpace(n))
if err != nil {
log.Errorf("convert year number %s to int error: %v", n, err)
continue