Skip to content

Commit

Permalink
Merge branch 'main' into renovate/jamesives-github-pages-deploy-actio…
Browse files Browse the repository at this point in the history
…n-4.x
  • Loading branch information
SebastianGoeb committed Dec 10, 2023
2 parents 7238fd9 + 34a0619 commit 57e5a7a
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/hsk/anki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Revision } from "./hsk";
export async function getWordIntervals(
_revision: Revision,
): Promise<Map<string, number>> {
const res = await fetch("src/assets/new_hsk_anki_notes.tsv");
const res = await fetch("new_hsk_anki_notes.tsv");
const text = await res.text();
const map = new Map<string, number>();
text.split("\n").forEach((line) => {
Expand Down
2 changes: 1 addition & 1 deletion src/hsk/hsk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export enum Revision {

export async function getWordsTsv(revision: Revision): Promise<HskWord[]> {
const prefix = revision === Revision.NEW ? "new" : "old";
const res = await fetch(`src/assets/${prefix}_hsk.tsv`);
const res = await fetch(`${prefix}_hsk.tsv`);
return wordsTsvToJson(await res.text());
}

Expand Down
2 changes: 1 addition & 1 deletion src/hsk/pleco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Revision } from "./hsk";
export async function getFakeWordIntervals(
_revision: Revision,
): Promise<Map<string, number>> {
const res = await fetch("src/assets/old_hsk.tsv");
const res = await fetch("old_hsk.tsv");
const text = await res.text();
const map = new Map<string, number>();
text
Expand Down

0 comments on commit 57e5a7a

Please sign in to comment.