Scrobble does not show up in "All Time" view
04nd01 opened this issue · comments
I'm reporting this in case it's a sign of a bug that could also be affecting other users. I have noticed a weird inconsistency when scrobbling to an newly created maloja (v3.2.1) instance with only a couple of scrobbles from this month.
The first eleven of these scrobbles don't show up anywhere when I filter by "All time". They do however show up when I filter by a certain time frame that includes the current month.
This issue seems to affect all views and can be reproduced through the API.
The URL /apis/mlj_1/numscrobbles returns {"status": "ok", "amount": 27}
.
The URL /apis/mlj_1/numscrobbles?from=2022 returns {"status": "ok", "amount": 38}
.
The scrobbles inside the database look fine and seem to have correct timestamps.
Looking at the code, I see that the "get_scrobbles" function itself has a reasonable default value for the "since" argument (since=0). This leads me to believe that, in the case of requesting all scrobbles, the function is not called without that argument but instead it's called with a "since" argument that contains some incorrect timestamp.
Unfortunately I'm not familiar with python and haven't been able trace this back to the to the place where the incorrect timestamp is introduced.
Can you isolate when this happens? Is this only on the first run? Or after importing from last.fm?
There was no initial import from lastfm. However the issue seems to have resolved itself. I updated the Docker Swarm service with a re-pull of the image and now after reloading the page the counts for "this year" and "all time" match up again.