chore(reading/index.php.liquid): hide books that are no longer started

This commit is contained in:
Cory Dransfeldt 2025-06-15 15:38:44 -07:00
parent 3f685720ce
commit 9e181363dd
No known key found for this signature in database
5 changed files with 47 additions and 42 deletions

View file

@ -18,12 +18,15 @@ class BookProgressHandler extends BaseHandler
}
}
$response = $this->makeRequest('GET', 'optimized_books_progress?select=isbn,progress');
$response = $this->makeRequest('GET', 'optimized_books_progress?select=isbn,progress,status');
$result = [];
foreach ($response as $row) {
if (!empty($row['isbn'])) {
$result[$row['isbn']] = (int) $row['progress'];
$result[$row['isbn']] = [
'progress' => (int) $row['progress'],
'status' => $row['status'] ?? null,
];
}
}