@xcpcio/core 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +2 -2
- package/src/export.ts +1 -1
- package/src/rank.ts +3 -1
package/dist/index.cjs
CHANGED
|
@@ -627,7 +627,7 @@ function rankToCodeforcesGymDAT(rank) {
|
|
|
627
627
|
`;
|
|
628
628
|
teamIndex++;
|
|
629
629
|
}
|
|
630
|
-
rank.
|
|
630
|
+
rank.getSubmissions().forEach((submission) => {
|
|
631
631
|
const teamId = submission.teamId;
|
|
632
632
|
const problemId = submission.problemId;
|
|
633
633
|
const problem = rank.contest.problemsMap.get(problemId);
|
|
@@ -1149,7 +1149,9 @@ class Rank {
|
|
|
1149
1149
|
if (this.options.enableFilterSubmissionsByTimestamp === false) {
|
|
1150
1150
|
return this.submissions;
|
|
1151
1151
|
}
|
|
1152
|
-
return this.submissions.filter(
|
|
1152
|
+
return this.submissions.filter(
|
|
1153
|
+
(s) => s.timestamp <= this.options.timestamp
|
|
1154
|
+
).sort(Submission.compare);
|
|
1153
1155
|
}
|
|
1154
1156
|
}
|
|
1155
1157
|
|
package/dist/index.mjs
CHANGED
|
@@ -611,7 +611,7 @@ function rankToCodeforcesGymDAT(rank) {
|
|
|
611
611
|
`;
|
|
612
612
|
teamIndex++;
|
|
613
613
|
}
|
|
614
|
-
rank.
|
|
614
|
+
rank.getSubmissions().forEach((submission) => {
|
|
615
615
|
const teamId = submission.teamId;
|
|
616
616
|
const problemId = submission.problemId;
|
|
617
617
|
const problem = rank.contest.problemsMap.get(problemId);
|
|
@@ -1133,7 +1133,9 @@ class Rank {
|
|
|
1133
1133
|
if (this.options.enableFilterSubmissionsByTimestamp === false) {
|
|
1134
1134
|
return this.submissions;
|
|
1135
1135
|
}
|
|
1136
|
-
return this.submissions.filter(
|
|
1136
|
+
return this.submissions.filter(
|
|
1137
|
+
(s) => s.timestamp <= this.options.timestamp
|
|
1138
|
+
).sort(Submission.compare);
|
|
1137
1139
|
}
|
|
1138
1140
|
}
|
|
1139
1141
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcpcio/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "XCPCIO Core",
|
|
5
5
|
"author": "Dup4 <lyuzhi.pan@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"dayjs": "^1.11.8",
|
|
44
44
|
"lodash": "^4.17.21",
|
|
45
|
-
"@xcpcio/types": "0.
|
|
45
|
+
"@xcpcio/types": "0.10.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@babel/types": "^7.22.4",
|
package/src/export.ts
CHANGED
|
@@ -95,7 +95,7 @@ export function rankToCodeforcesGymDAT(rank: Rank) {
|
|
|
95
95
|
teamIndex++;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
rank.
|
|
98
|
+
rank.getSubmissions().forEach((submission) => {
|
|
99
99
|
const teamId = submission.teamId;
|
|
100
100
|
const problemId = submission.problemId;
|
|
101
101
|
const problem = rank.contest.problemsMap.get(problemId);
|
package/src/rank.ts
CHANGED
|
@@ -390,6 +390,8 @@ export class Rank {
|
|
|
390
390
|
return this.submissions;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
return this.submissions.filter(s =>
|
|
393
|
+
return this.submissions.filter(s =>
|
|
394
|
+
s.timestamp <= this.options.timestamp,
|
|
395
|
+
).sort(Submission.compare);
|
|
394
396
|
}
|
|
395
397
|
}
|