Skip to content
This repository was archived by the owner on Mar 26, 2019. It is now read-only.

Commit 77e314e

Browse files
committed
这次真的修好了段数被清空的问题了。。
1 parent 10bf4d2 commit 77e314e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/me/ryan/model/Score.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,9 @@ public String toString() {
319319
* 重置成绩
320320
*/
321321
public void reInit() {
322-
this.idOfArticle = 0;
322+
//this.idOfArticle = 0; // 这两个参数并不是跟打过程中的参数,不应该在这里重置
323+
//this.retypeCount = 0;
324+
323325
this.keystrokes = 0;
324326
this.charactersCount = 0;
325327
this.timeInterval = LocalTime.of(0, 0);
@@ -331,6 +333,5 @@ public void reInit() {
331333
this.ratioOfWords = 0;
332334
this.backspaceCount = 0;
333335
this.keysAccuracy = 0;
334-
this.retypeCount = 0;
335336
}
336337
}

0 commit comments

Comments
 (0)