Skip to content
Snippets Groups Projects
Commit 68cad023 authored by Philipp Pospischil's avatar Philipp Pospischil
Browse files

chore: change data filename to overwrite all old data for existing users

parent e8728154
No related branches found
No related tags found
1 merge request!28feat: corrections for Jana
Pipeline #23456 passed
......@@ -44,7 +44,7 @@ export async function generate (config: Config): Promise<void> {
}
// the underscore ensures that Anki media checks dón't think the file
// is unused
const out = join(generatingDir, `_hd${char}.js`)
const out = join(generatingDir, `_cd${char}.js`)
generated.push(generateForHanzi(char, out))
}
}
......
......@@ -252,6 +252,7 @@
滿
......@@ -321,7 +322,6 @@
......@@ -349,7 +349,6 @@
......@@ -469,6 +468,7 @@
......
......@@ -30,7 +30,7 @@ export async function getHanziData (
throw new Error(`Can only get data for single chars, got: ${char}`)
}
const data = (await getDataUnsafe({ path: `hanzi-data/_hd${char}.js`, key: char })) as Readonly<HanziData>
const data = (await getDataUnsafe({ path: `hanzi-data/_cd${char}.js`, key: char })) as Readonly<HanziData>
if (kind === GetHanziDataKind.TRADITIONAL && data.trad !== undefined) {
// data in the cache is read-only => make a fresh copy with trad overrides
return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment