mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 06:18:03 +03:00
fixes from latest staging
This commit is contained in:
@@ -183,7 +183,7 @@ export default function ImportRoutes() {
|
||||
<CGIntegrationPage cgType="prod" game="museca" />
|
||||
</Route>
|
||||
|
||||
<Route exact path="/dashboard/import/wacca-mypage-scraper">
|
||||
<Route exact path="/import/wacca-mypage-scraper">
|
||||
<WACCAMyPageScraperPage />
|
||||
</Route>
|
||||
</>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import ScoreImportFatalError from "../../../framework/score-importing/score-import-error";
|
||||
import { WACCA_STAGEUPS } from "lib/constants/classes";
|
||||
import { WACCA_STAGEUPS } from "tachi-common";
|
||||
import type { ClassHandler } from "../../../framework/user-game-stats/types";
|
||||
import type { MyPagePlayerStage } from "./types";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
InternalFailure,
|
||||
InvalidScoreFailure,
|
||||
KTDataNotFoundFailure,
|
||||
SongOrChartNotFoundFailure,
|
||||
} from "lib/score-import/framework/common/converter-failures";
|
||||
import { GenericGetGradeAndPercent } from "lib/score-import/framework/common/score-utils";
|
||||
import { FindChartWithPTDF } from "utils/queries/charts";
|
||||
@@ -30,7 +30,7 @@ const ConvertMyPageScraperRecordsCSV: ConverterFunction<
|
||||
const song = await FindSongOnTitle("wacca", data.songTitle);
|
||||
|
||||
if (song === null) {
|
||||
throw new KTDataNotFoundFailure(
|
||||
throw new SongOrChartNotFoundFailure(
|
||||
`Could not find song for ${data.songTitle}.`,
|
||||
importType,
|
||||
data,
|
||||
@@ -49,7 +49,7 @@ const ConvertMyPageScraperRecordsCSV: ConverterFunction<
|
||||
const chart = await FindChartWithPTDF("wacca", song.id, "Single", difficulty);
|
||||
|
||||
if (chart === null) {
|
||||
throw new KTDataNotFoundFailure(
|
||||
throw new SongOrChartNotFoundFailure(
|
||||
`Could not find chart for ${humanisedChartTitle}.`,
|
||||
importType,
|
||||
data,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { CreateMyPageScraperClassHandler } from "./class-handler";
|
||||
import ScoreImportFatalError from "../../../framework/score-importing/score-import-error";
|
||||
import { parse, CsvError } from "csv-parse/sync";
|
||||
import p from "prudence";
|
||||
import { p } from "prudence";
|
||||
import type { ParserFunctionReturns } from "../../common/types";
|
||||
import type { MyPageRecordsRawCsvRecord, MyPageRecordsParsedPB } from "./types";
|
||||
import type { KtLogger } from "lib/logger/logger";
|
||||
|
||||
Reference in New Issue
Block a user