mirror of
https://git.sr.ht/~phw/scotty
synced 2025-05-10 10:17:04 +02:00
Simplify timestamp comparisons
This commit is contained in:
parent
389c7c6ec1
commit
c305b6c7e3
7 changed files with 14 additions and 14 deletions
|
@ -84,7 +84,7 @@ out:
|
|||
|
||||
for _, fwListen := range result.Results {
|
||||
listen := fwListen.AsListen()
|
||||
if listen.ListenedAt.Unix() > oldestTimestamp.Unix() {
|
||||
if listen.ListenedAt.After(oldestTimestamp) {
|
||||
p.Elapsed += 1
|
||||
listens = append(listens, listen)
|
||||
} else {
|
||||
|
@ -135,7 +135,7 @@ out:
|
|||
|
||||
for _, favorite := range result.Results {
|
||||
love := favorite.AsLove()
|
||||
if love.Created.Unix() > oldestTimestamp.Unix() {
|
||||
if love.Created.After(oldestTimestamp) {
|
||||
p.Elapsed += 1
|
||||
loves = append(loves, love)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue