mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 10:58:07 +03:00
Make it not dry-run
This commit is contained in:
@@ -86,7 +86,7 @@ MutateCollection("charts-iidx.json", (charts) => {
|
||||
let existingReference = null;
|
||||
for (const chart of charts) {
|
||||
if (chart.data.hashSHA256 === data.hash) {
|
||||
// chart.versions.push(options.version);
|
||||
chart.versions.push(options.version);
|
||||
match = true;
|
||||
break;
|
||||
} else if (chart.data.inGameID === data.id) {
|
||||
@@ -100,27 +100,27 @@ MutateCollection("charts-iidx.json", (charts) => {
|
||||
continue;
|
||||
}
|
||||
|
||||
// charts.push({
|
||||
// "chartID": CreateChartID(),
|
||||
// "data": {
|
||||
// "2dxtraSet": options.set,
|
||||
// "arcChartID": null,
|
||||
// "hashSHA256": data.hash,
|
||||
// "inGameID": data.id,
|
||||
// "notecount": data.notes
|
||||
// },
|
||||
// "difficulty": `${options.set} ${data.difficulty}`,
|
||||
// "isPrimary": true,
|
||||
// "level": "?",
|
||||
// "levelNum": 0,
|
||||
// playtype: data.playtype,
|
||||
// "rgcID": null,
|
||||
// "songID": existingReference.songID,
|
||||
// "tierlistInfo": {},
|
||||
// "versions": [
|
||||
// options.version
|
||||
// ]
|
||||
// });
|
||||
charts.push({
|
||||
"chartID": CreateChartID(),
|
||||
"data": {
|
||||
"2dxtraSet": options.set,
|
||||
"arcChartID": null,
|
||||
"hashSHA256": data.hash,
|
||||
"inGameID": data.id,
|
||||
"notecount": data.notes
|
||||
},
|
||||
"difficulty": `${options.set} ${data.difficulty}`,
|
||||
"isPrimary": true,
|
||||
"level": "?",
|
||||
"levelNum": 0,
|
||||
playtype: data.playtype,
|
||||
"rgcID": null,
|
||||
"songID": existingReference.songID,
|
||||
"tierlistInfo": {},
|
||||
"versions": [
|
||||
options.version
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user