Fix aggregation of anime watch history items
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
This commit is contained in:
parent
da15c45fd9
commit
3f2c23ab96
@ -2,10 +2,12 @@
|
|||||||
|
|
||||||
## Version 5
|
## Version 5
|
||||||
* Updated PHP requirement to 7.4
|
* Updated PHP requirement to 7.4
|
||||||
|
* Added anime history view
|
||||||
|
|
||||||
## Version 4.2
|
## Version 4.2
|
||||||
* Updated dependencies
|
* Updated dependencies
|
||||||
* Updated PHP requirement to 7.3
|
* Updated PHP requirement to 7.3
|
||||||
|
* Added option to automatically set dark mode based on the OS setting
|
||||||
|
|
||||||
## Version 4.1
|
## Version 4.1
|
||||||
* Added optional dark theme
|
* Added optional dark theme
|
||||||
|
@ -69,12 +69,12 @@ class AnimeHistoryTransformer {
|
|||||||
protected function aggregate (array $singles): array
|
protected function aggregate (array $singles): array
|
||||||
{
|
{
|
||||||
$output = [];
|
$output = [];
|
||||||
$prevTitle = '';
|
|
||||||
|
|
||||||
$count = count($singles);
|
$count = count($singles);
|
||||||
for ($i = 0; $i < $count; $i++)
|
for ($i = 0; $i < $count; $i++)
|
||||||
{
|
{
|
||||||
$entry = $singles[$i];
|
$entry = $singles[$i];
|
||||||
|
$prevTitle = $entry['title'];
|
||||||
$nextId = $i + 1;
|
$nextId = $i + 1;
|
||||||
if ($nextId < $count)
|
if ($nextId < $count)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user