Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import old votes #1

Closed
Top-Cat opened this issue Aug 4, 2021 · 4 comments
Closed

Import old votes #1

Top-Cat opened this issue Aug 4, 2021 · 4 comments

Comments

@Top-Cat
Copy link
Member

Top-Cat commented Aug 4, 2021

Pretty simple, populate votes table with old mongo data

@Top-Cat Top-Cat closed this as completed Aug 6, 2021
@Top-Cat
Copy link
Member Author

Top-Cat commented Aug 6, 2021

Old steam votes imported

@n3tman
Copy link

n3tman commented Aug 17, 2021

@Top-Cat, just wanted to make sure: have all votes been imported properly?
As you know, I calculate combined stats at https://n3tman.github.io/TopMappers/

Page hasn't been updated since August 2nd, but it still shows higher numbers compared to https://beatsaver.com/mappers
Differences in Likes for Top 10 mappers:

Uploader BeatSaver TopMappers Diff
joetastic 278,148 287,393 −9,245
bennydabeast 112,681 125,156 −12,475
rustic 105,628 111,222 −5,594
greatyazer 78,903 85,087 −6,184
skylerwallace 67,883 76,360 −8,477
downycat 53,680 60,138 −6,458
kolezan 57,392 58,538 −1,146
etan 59,877 57,890 +1,987
freeek 53,460 57,624 −4,164
heisenbergirl 49,079 56,040 −6961

So quite a few votes haven't been imported/counted.
From what I got, you implemented Oculus voting since April, so shouldn't your numbers be higher instead?

If you need the latest BeatSaver dump by andruzzzhka (from Aug 2nd, now deleted), here it is: beatSaverScrappedData.zip
Taken directly from the repo above, no edits have been made.

@Top-Cat
Copy link
Member Author

Top-Cat commented Aug 17, 2021

All the votes that are verifiable have been imported. No other numbers are going to be added.

@n3tman
Copy link

n3tman commented Aug 17, 2021

My bad, I forgot I had some hardcoded logic there that added votes from "map pack" usernames to specific uploaders.

Code
if (username === 'fridaynightfunkinpack') {
    switch (song.key) {
        case '19539': username = 'novarulz -_-'; break;
        case '1953a': username = 'nolan121405'; break;
        case '1953b': username = 'oddloop'; break;
        case '1953c': username = 'mystikmol'; break;
        case '1953d': username = 'kikaeaeon'; break;
        case '1953e': username = 'kikaeaeon'; break;
        case '19540': username = 'kikaeaeon'; break;
        case '19541': username = 'oddloop'; break;
        case '19542': username = 'oddloop'; break;
        case '19543': username = 'oddloop'; break;
        case '19548': username = 'that_narwhal'; break;
        case '19549': username = 'that_narwhal'; break;
        case '1954a': username = 'that_narwhal'; break;
        case '1954c': username = 'nomuffn'; break;
        case '1954d': username = 'nomuffn'; break;
        case '1954e': username = 'nolan121405'; break;
        case '1954f': username = 'skeary'; break;
        case '19550': username = 'plusonerabbit'; break;
        case '19551': username = 'tm0d'; break;
        case '19552': username = 'lethrial'; break;
        case '19554': username = 'lethrial'; break;
        case '19555': username = 'lethrial'; break;
    }
}

if (username === 'fallguyspack') {
    switch (song.key) {
        case 'e0a9': username = 'nomuffn'; break;
        case 'e0ab': username = 'thelonewolvez'; break;
        case 'e0ac': username = 'connorjc'; break;
        case 'e0ad': username = 'that_narwhal'; break;
        case 'e0ae': username = 'bytrius'; break;
        case 'e0b0': username = 'lethrial'; break;
    }
}

if (username === 'anniversaryteam') {
    switch (song.key) {
        case '612e': username = 'styngme'; break;
        case '612d': username = 'heisenbergirl'; break;
        case '612c': username = 'styngme'; break;
        case '5d71': username = 'skylerwallace'; break;
        case '5d3e': username = 'funrankable'; break;
        case '5d2c': username = 'heisenbergirl'; break;
        case '5d2b': username = 'skylerwallace'; break;
        case '5d2a': username = 'styngme'; break;
        case '5d29': username = 'styngme'; break;
        case '5d28': username = 'styngme'; break;
        case '5d27': username = 'styngme'; break;
        case '5d26': username = 'skylerwallace'; break;
        case '5d25': username = 'styngme'; break;
        case '5d24': username = 'bennydabeast'; break;
        case '5d23': username = 'styngme'; break;
        case '4b2e': username = 'skylerwallace'; break;
        case '4b20': username = 'fafurion'; break;
        case '4b1f': username = 'heisenbergirl'; break;
        case '4ad5': username = 'skylerwallace'; break;
        case '4ad4': username = 'styngme'; break;
        case '4a4c': username = 'ruckus'; break;
        case '4a4b': username = 'skylerwallace'; break;
        case '4a49': username = 'skylerwallace'; break;
        case '4a48': username = 'greatyazer'; break;
        case '4a47': username = 'downycat'; break;
        case '4a45': username = 'bennydabeast'; break;
        case '4a44': username = 'skylerwallace'; break;
        case '4a43': username = 'styngme'; break;
        case '4a42': username = 'joetastic'; break;
        case '4a41': username = 'funrankable'; break;
        case '4a3f': username = 'heisenbergirl'; break;
        case '4a3e': username = 'styngme'; break;
        case '4a3d': username = 'bennydabeast'; break;
        case '4a3b': username = 'bennydabeast'; break;
        case '4a3a': username = 'skylerwallace'; break;
        case '4a39': username = 'styngme'; break;
        case '4a37': username = 'joetastic'; break;
        case '4a36': username = 'fafurion'; break;
        case '4a35': username = 'joetastic'; break;
        case '4a34': username = 'baxter395'; break;
        case '4a33': username = 'skylerwallace'; break;
        case '4a32': username = 'styngme'; break;
    }
}
However: rustic, kolezan and freeek didn't take part in these packs and still lost a few thousands upvotes.

Anyway, thanks for the explanation 👍

Top-Cat pushed a commit that referenced this issue May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants