fix: tracking
Local Docker Build (Dev) / build-dev (push) Successful in 6s

This commit is contained in:
2025-11-03 15:45:17 -05:00
parent b48f1220e2
commit 1e292434c0
3 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -1 +1 @@
2.9.6-populate-progress-fix 2.9.7-status-format-fix
+1 -1
View File
@@ -711,6 +711,6 @@
<!-- Toast Notifications --> <!-- Toast Notifications -->
<div class="toast-container" id="toast-container"></div> <div class="toast-container" id="toast-container"></div>
<script src="/static/js/app.js?v=2.9.5-populate-progress-fix"></script> <script src="/static/js/app.js?v=2.9.7-status-format-fix"></script>
</body> </body>
</html> </html>
+8 -7
View File
@@ -1857,8 +1857,8 @@ function startPopulatePolling() {
const status = await response.json(); const status = await response.json();
updatePopulateProgress(status); updatePopulateProgress(status);
// Stop polling if complete or error // Stop polling if complete or error (API returns "completed": true/false and "error": string)
if (status.status === 'completed' || status.status === 'error') { if (status.completed || status.error) {
stopPopulatePolling(); stopPopulatePolling();
// Re-enable submit button // Re-enable submit button
@@ -1895,7 +1895,8 @@ function updatePopulateProgress(status) {
const progressText = document.getElementById('populate-progress-text'); const progressText = document.getElementById('populate-progress-text');
const resultsDiv = document.getElementById('populate-results'); const resultsDiv = document.getElementById('populate-results');
if (status.status === 'in_progress') { // Handle running status (API returns "running": true/false)
if (status.running && !status.completed) {
if (progressBar) { if (progressBar) {
// Show indeterminate progress // Show indeterminate progress
progressBar.style.width = '50%'; progressBar.style.width = '50%';
@@ -1903,7 +1904,7 @@ function updatePopulateProgress(status) {
if (progressText) { if (progressText) {
progressText.textContent = 'Populating database...'; progressText.textContent = 'Populating database...';
} }
} else if (status.status === 'completed') { } else if (status.completed) {
if (progressBar) { if (progressBar) {
progressBar.style.width = '100%'; progressBar.style.width = '100%';
} }
@@ -1911,9 +1912,9 @@ function updatePopulateProgress(status) {
progressText.textContent = 'Complete!'; progressText.textContent = 'Complete!';
} }
// Show results // Show results (API returns movies/tv directly, not nested in result)
if (resultsDiv && status.result) { if (resultsDiv && (status.movies || status.tv)) {
const result = status.result; const result = status; // Use status directly, not status.result
let html = '<h4>Population Results</h4>'; let html = '<h4>Population Results</h4>';
// Movies // Movies