fix: download status
This commit is contained in:
@@ -236,12 +236,10 @@ class QueueManager {
|
||||
try {
|
||||
const response = await this.makeAuthenticatedRequest('/api/queue/status');
|
||||
if (!response) {
|
||||
console.warn('No response from queue status API');
|
||||
return;
|
||||
}
|
||||
|
||||
const data = await response.json();
|
||||
console.log('Raw API response:', data);
|
||||
|
||||
// API returns nested structure with 'status' and 'statistics'
|
||||
// Transform it to the expected flat structure
|
||||
@@ -250,9 +248,6 @@ class QueueManager {
|
||||
statistics: data.statistics
|
||||
};
|
||||
|
||||
console.log('Transformed queue data:', queueData);
|
||||
console.log('Pending queue length:', queueData.pending_queue?.length);
|
||||
|
||||
this.updateQueueDisplay(queueData);
|
||||
|
||||
// Process any pending progress updates after queue is loaded
|
||||
|
||||
Reference in New Issue
Block a user