mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -04:00
Set recently added group range to 1 day
This commit is contained in:
parent
62af879bfa
commit
b83313b231
@ -575,7 +575,8 @@ class Library
|
||||
.sort { |a, b| b.date_added <=> a.date_added }
|
||||
.each do |e|
|
||||
last = recently_added.last?
|
||||
if last && e.title_id == last[:entry].title_id
|
||||
if last && e.title_id == last[:entry].title_id &&
|
||||
(e.date_added - last[:entry].date_added).duration < 1.day
|
||||
# A NamedTuple is immutable, so we have to cast it to a Hash first
|
||||
last_hash = last.to_h
|
||||
count = last_hash[:grouped_count].as(Int32)
|
||||
|
Loading…
x
Reference in New Issue
Block a user