CHUNITHM - GetUserMusicApi returning duplicate songs #45
Labels
No Label
aimedb
bug
chuni
chusan
cxb
database
diva
doc
duplicate
enhancement
frontend
help wanted
idac
idz
invalid
maidx
ongeki
pokken
question
seen
system
testing
wacca
waiting
wip
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Hay1tsme/artemis#45
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
So after investigating the each return result of the api, i've noticed that some songs will be returned multiple times in these returns.
This seems would not cause any issue in game but some other services depends on this api might experience an issue while using the result directly.
I'm currently using a fix that use an global id set in ram, which clears after the nextIndex is given -1. This could solve the issue but I believe there are more elegant ways to do this.
Hello DSRLIN,
If you have a better way of doing it, feel free to let us know a fix for the current code since I couldn't figure out something to permanently fix this
Thank you
SCORE_BUFFER is a global empty dict in base.py and new.py.
Just an ugly fix to this problem.
I'll test it out on Monday when i get some free time just to be sure it is working
To be honest, as long it works, i'm all up for it
Nvm i was able to test it just now but it ran into an undefined error with SCORE_BUFFER
I had to add SCORE_BUFFER = {} and that fixed it, running a test now on a few different profiles
Hello,
From my testing, it appears to be working correctly so i think it should be good for a pull request for the develop branch
Just make sure that SCORE_BUFFER = {} is added underneath song_list = [] and it will be ready
Thank you!
Hello DSRLIN,
Thank you for the referenced PR, i'll approve it as I also tested it personally without any issues, it fixed the weird bug we had before with scores that disappeared due to looped IDs.