mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +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
|
||||
let statusText;
|
||||
if (stats.queuedNotesCount > 0) {
|
||||
statusText = t("ai_llm.processing");
|
||||
statusText = t("ai_llm.processing", { percentage: progressPercent });
|
||||
} else if (stats.embeddedNotesCount === 0) {
|
||||
statusText = t("ai_llm.not_started");
|
||||
} else if (stats.embeddedNotesCount === stats.totalNotesCount) {
|
||||
@ -340,7 +340,7 @@ export default class AiSettingsWidget extends OptionsWidget {
|
||||
this.indexRebuildRefreshInterval = null;
|
||||
}
|
||||
} else {
|
||||
statusText = t("ai_llm.partial");
|
||||
statusText = t("ai_llm.partial", { percentage: progressPercent });
|
||||
}
|
||||
|
||||
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
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user