Skip to content

Commit 02025ef

Browse files
author
leeli
committed
修改下细节
1 parent d65f7b1 commit 02025ef

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ script:
1414
after_success:
1515
- cd ..
1616
- git checkout -b gh
17-
- cat README.md
1817
- git config --local user.name "${U_NAME}"
1918
- git config --local user.email "${U_EMAIL}"
2019
- git add .
2120
- git commit -m ":construction_worker:- Build & Deploy by Travis CI"
21+
- git push "https://${Travis_Token}@${GIT_REF}" gh:develop
2222
- git push --force "https://${Travis_Token}@${GIT_REF}" gh:master

Helper/util.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ func (p problem) tableLine() string {
4444
// 标题
4545
res += fmt.Sprintf("|[%s](%s)", p.Title, p.dir())
4646
// 难度
47-
res += fmt.Sprintf("|%s|\n", p.diff())
47+
res += fmt.Sprintf("|%s", p.diff())
48+
// 语言 TODO 以后dir写在语言下,同题目同一行tableLine
49+
res += fmt.Sprintf("|%s\n", p.Lang)
4850

4951
return res
5052
}
@@ -85,7 +87,7 @@ func getSl(dir string) problems {
8587
// check if it is a regular file (not dir)
8688
if info.Mode().IsRegular() {
8789
pathArray := strings.Split(path, "/")
88-
IDMix := strings.Split(pathArray[len(pathArray) - 2], "-")
90+
IDMix := strings.Split(pathArray[len(pathArray)-2], "-")
8991
titleMix := strings.Split(info.Name(), ".")
9092
id, title, lang := IDMix[0], titleMix[0], titleMix[1]
9193
diff, _ := strconv.Atoi(IDMix[1])

0 commit comments

Comments
 (0)