@aoi-js/aka 0.0.8 → 0.0.9
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/README.md +4 -1
- package/lib/calc/acm.js +1 -1
- package/lib/calc/basic.js +1 -1
- package/lib/calc/plus.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/calc/acm.js
CHANGED
|
@@ -141,7 +141,7 @@ export class AcmCalculator extends RanklistCalculator {
|
|
|
141
141
|
list: await Promise.all(topstarUserIdList.map(async (userId) => {
|
|
142
142
|
const solutions = await this.db.solutions
|
|
143
143
|
.find({ contestId, userId })
|
|
144
|
-
.sort({
|
|
144
|
+
.sort({ submittedAt: 1 })
|
|
145
145
|
.toArray();
|
|
146
146
|
const currentScores = Object.create(null);
|
|
147
147
|
const mutations = [];
|
package/lib/calc/basic.js
CHANGED
|
@@ -53,7 +53,7 @@ export class BasicCalculator extends RanklistCalculator {
|
|
|
53
53
|
list: await Promise.all(topstarUserIdList.map(async (userId) => {
|
|
54
54
|
const solutions = await this.db.solutions
|
|
55
55
|
.find({ contestId, userId })
|
|
56
|
-
.sort({
|
|
56
|
+
.sort({ submittedAt: 1 })
|
|
57
57
|
.toArray();
|
|
58
58
|
const currentScores = Object.create(null);
|
|
59
59
|
const mutations = [];
|
package/lib/calc/plus.js
CHANGED
|
@@ -258,7 +258,7 @@ export class PlusCalculator extends RanklistCalculator {
|
|
|
258
258
|
list: await Promise.all(topstarUserIdList.map(async (userId) => {
|
|
259
259
|
const solutions = await this.db.solutions
|
|
260
260
|
.find({ contestId, userId, problemId: { $in: problemIdList } })
|
|
261
|
-
.sort({
|
|
261
|
+
.sort({ submittedAt: 1 })
|
|
262
262
|
.toArray();
|
|
263
263
|
const currentScores = Object.create(null);
|
|
264
264
|
const mutations = [];
|