Skip to content

Commit

Permalink
fix problem number
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoaer committed Jan 14, 2021
1 parent 4cb18f0 commit adf5dcb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions question/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func (e *entity) SaveHistory() {

func (e *entity) ProblemInOrder() {
currentNum := int(e.history.Progress)
fmt.Println(currentNum)
for index, problem := range e.problemList[currentNum:] {
e.SaveHistory()
// 判断是否一次答对
Expand All @@ -47,7 +46,7 @@ func (e *entity) ProblemInOrder() {
e.history.ErrorProblems = append(e.history.ErrorProblems, float64(index))
}
}
e.history.Progress = float64(index)
e.history.Progress = float64(currentNum + index + 1)
}
fmt.Println("题目已刷完,是否清空以便二刷?(y/n)")
var answer string
Expand Down

0 comments on commit adf5dcb

Please sign in to comment.