Include the date of record submission

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2 2 years ago
parent e826d71efc
commit 0b879d044e
  1. 3
      readers/Reader.java

@ -2,6 +2,7 @@ package readers;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file.Path;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@ -348,7 +349,7 @@ public abstract class Reader{
public String toStringWithScreenshot() {
return "{\"game\":\""+getClass().getSimpleName()+"\",\"difficulty\":" + difficulty + ", \"maxcombo\":" + maxcombo + ", \"notes\":" + Arrays.toString(notes)
+ ", \"other\":" + other + ", \"pct\":" + pct + ", \"rank\":" + rank + ", \"score\":" + score + ", \"title\":\"" + title.replaceAll(Pattern.quote("\n"),"\\\\n")
+ "\", \"screenshot\":\""+result_screenshot+"\"}";
+ "\", \"screenshot\":\""+result_screenshot+"\", \"date\":"+ZonedDateTime.now().toEpochSecond()+"}";
}
public int getScore() {
return score;

Loading…
Cancel
Save