Merge pull request #47 from JustinZeus/feat/live-scholar-progress-counter

fix(ingestion,frontend): show live counter immediately on run start
This commit is contained in:
JustinZeus 2026-03-03 18:38:36 +01:00 committed by GitHub
commit c6c89879c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -420,6 +420,7 @@ async def run_scholar_iteration(
{"visited": visited, "finished": finished, "total": total}, {"visited": visited, "finished": finished, "total": total},
) )
await _emit()
first_pass_cstarts = await _run_first_pass( first_pass_cstarts = await _run_first_pass(
db_session, db_session,
scholars=scholars, scholars=scholars,

View file

@ -487,9 +487,9 @@ watch(
</div> </div>
<p class="mt-2 text-sm text-secondary"> <p class="mt-2 text-sm text-secondary">
Started {{ formatDate(displayedLatestRun.start_dt) }}. Started {{ formatDate(displayedLatestRun.start_dt) }}.
<template v-if="runStatus.isLikelyRunning && runStatus.scholarProgress"> <template v-if="runStatus.isLikelyRunning">
{{ runStatus.scholarProgress.visited }} / {{ runStatus.scholarProgress.total }} visited {{ runStatus.scholarProgress?.visited ?? 0 }} / {{ runStatus.scholarProgress?.total ?? '…' }} visited
· {{ runStatus.scholarProgress.finished }} finished · {{ runStatus.scholarProgress?.finished ?? 0 }} finished
· {{ displayedLatestRun.new_publication_count }} new publications. · {{ displayedLatestRun.new_publication_count }} new publications.
</template> </template>
<template v-else> <template v-else>