mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-13 04:13:19 +08:00
fix showing percentage of embeddings that are completed
This commit is contained in:
parent
40bbdb2faa
commit
a5488771ae
@ -328,7 +328,7 @@ export default class AiSettingsWidget extends OptionsWidget {
|
|||||||
// Update status text
|
// Update status text
|
||||||
let statusText;
|
let statusText;
|
||||||
if (stats.queuedNotesCount > 0) {
|
if (stats.queuedNotesCount > 0) {
|
||||||
statusText = t("ai_llm.processing");
|
statusText = t("ai_llm.processing", { percentage: progressPercent });
|
||||||
} else if (stats.embeddedNotesCount === 0) {
|
} else if (stats.embeddedNotesCount === 0) {
|
||||||
statusText = t("ai_llm.not_started");
|
statusText = t("ai_llm.not_started");
|
||||||
} else if (stats.embeddedNotesCount === stats.totalNotesCount) {
|
} else if (stats.embeddedNotesCount === stats.totalNotesCount) {
|
||||||
@ -340,7 +340,7 @@ export default class AiSettingsWidget extends OptionsWidget {
|
|||||||
this.indexRebuildRefreshInterval = null;
|
this.indexRebuildRefreshInterval = null;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
statusText = t("ai_llm.partial");
|
statusText = t("ai_llm.partial", { percentage: progressPercent });
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$widget.find('.embedding-status-text').text(statusText);
|
this.$widget.find('.embedding-status-text').text(statusText);
|
||||||
|
@ -224,7 +224,7 @@ export async function processEmbeddingQueue() {
|
|||||||
|
|
||||||
// Double-check that this note isn't already being processed
|
// Double-check that this note isn't already being processed
|
||||||
if (notesInProcess.has(noteId)) {
|
if (notesInProcess.has(noteId)) {
|
||||||
log.info(`Note ${noteId} is already being processed by another thread, skipping`);
|
//log.info(`Note ${noteId} is already being processed by another thread, skipping`);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user