Skip to content

Commit

Permalink
Keyword tweak, save curator edits for versioned figures db
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsilvestre committed Nov 25, 2024
1 parent fc0e523 commit 50cb820
Show file tree
Hide file tree
Showing 4 changed files with 275 additions and 144 deletions.
12 changes: 1 addition & 11 deletions app/features/curate/getCurationState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,16 +187,6 @@ export async function getCurationState(courseId: string, page: number) {
}
}

await prisma.course.upsert({
where: {
id: "kj2x",
},
update: {},
create: {
id: "kj2x",
},
});

const allFiguresKeys = await prisma.kanjisenseFigure
.findMany({
select: {
Expand Down Expand Up @@ -699,7 +689,7 @@ function getDefaultTangReadings(
return Array.from(normalizedShinjitai, (char) => {
const readings = getFigureReadings(char);
const tangReadings = readings.map((r) => transcribeSbgyXiaoyun(r));
if (char === "不") return tangReadings[1];
if (char === "不") return tangReadings[2];

if (!tangReadings.length) return "X";
if (tangReadings.length === 1) return tangReadings[0];
Expand Down
3 changes: 2 additions & 1 deletion app/lib/dic/componentsDictionary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ CDP-8DBF: # 廌,焉,薦
historical: tongue
tag: body
:
historical: heaps
historical: stacks
tag: geo
:
historical: still, yet; ancient; exalt
Expand Down Expand Up @@ -2858,6 +2858,7 @@ GWS-U914B-G:
tag: fabric
:
historical: stationing
mnemonic: heapings
tag: place
:
historical: examine
Expand Down
Loading

0 comments on commit 50cb820

Please sign in to comment.