chore(reading/index.php.liquid): hide books that are no longer started
This commit is contained in:
parent
3f685720ce
commit
9e181363dd
5 changed files with 47 additions and 42 deletions
|
@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue