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

Lifetime data all the same as well keeps duplicating on refresh #7

Open
itzaidan opened this issue Jun 10, 2024 · 2 comments
Open

Lifetime data all the same as well keeps duplicating on refresh #7

itzaidan opened this issue Jun 10, 2024 · 2 comments

Comments

@itzaidan
Copy link

I noticed last night when looking at this project that every time I fetch for data, the lifetime stats are all the exact same no matter the mode, as well as if I refresh or query again after a certain it will keep duplicated and numbers to the stats numbers, even if I fetch a different player it will be the same.

First fetch:

"lifetime": {
    "casual": {
        "aces": 235,
        "assists": 21579,
        "clutches": 603,
        "deaths": 81495,
        "headshots": 42198,
        "kdRatio": "0.94",
        "kills": 76847,
        "killTrades": 7144,
        "losses": 11887,
        "minutesPlayed": 369651,
        "revives": 14652,
        "teamKills": 756,
        "winPercent": "51.28%",
        "wins": 12513
    },
    "overall": {
        "aces": 235,
        "assists": 21579,
        "clutches": 603,
        "deaths": 81495,
        "headshots": 42198,
        "kdRatio": "0.94",
        "kills": 76847,
        "killTrades": 7144,
        "losses": 11887,
        "minutesPlayed": 369651,
        "revives": 14652,
        "teamKills": 756,
        "winPercent": "51.28%",
        "wins": 12513
                },
    "ranked": {
        "aces": 235,
        "assists": 21579,
        "clutches": 603,
        "deaths": 81495,
        "headshots": 42198,
        "kdRatio": "0.94",
        "kills": 76847,
        "killTrades": 7144,
        "losses": 11887,
        "minutesPlayed": 369651,
        "revives": 14652,
        "teamKills": 756,
        "winPercent": "51.28%",
        "wins": 12513
    },
    "unranked": {
        "aces": 235,
        "assists": 21579,
        "clutches": 603,
        "deaths": 81495,
        "headshots": 42198,
        "kdRatio": "0.94",
        "kills": 76847,
        "killTrades": 7144,
        "losses": 11887,
        "minutesPlayed": 369651,
        "revives": 14652,
        "teamKills": 756,
        "winPercent": "51.28%",
        "wins": 12513
    }
},

Second fetch:

            "lifetime": {
                "casual": {
                    "aces": 716,
                    "assists": 36456,
                    "clutches": 1179,
                    "deaths": 147969,
                    "headshots": 78892,
                    "kdRatio": "1.08",
                    "kills": 160208,
                    "killTrades": 11208,
                    "losses": 18255,
                    "minutesPlayed": 690551,
                    "revives": 20345,
                    "teamKills": 1566,
                    "winPercent": "55.70%",
                    "wins": 22957
                },
                "overall": {
                    "aces": 716,
                    "assists": 36456,
                    "clutches": 1179,
                    "deaths": 147969,
                    "headshots": 78892,
                    "kdRatio": "1.08",
                    "kills": 160208,
                    "killTrades": 11208,
                    "losses": 18255,
                    "minutesPlayed": 690551,
                    "revives": 20345,
                    "teamKills": 1566,
                    "winPercent": "55.70%",
                    "wins": 22957
                },
                "ranked": {
                    "aces": 716,
                    "assists": 36456,
                    "clutches": 1179,
                    "deaths": 147969,
                    "headshots": 78892,
                    "kdRatio": "1.08",
                    "kills": 160208,
                    "killTrades": 11208,
                    "losses": 18255,
                    "minutesPlayed": 690551,
                    "revives": 20345,
                    "teamKills": 1566,
                    "winPercent": "55.70%",
                    "wins": 22957
                },
                "unranked": {
                    "aces": 716,
                    "assists": 36456,
                    "clutches": 1179,
                    "deaths": 147969,
                    "headshots": 78892,
                    "kdRatio": "1.08",
                    "kills": 160208,
                    "killTrades": 11208,
                    "losses": 18255,
                    "minutesPlayed": 690551,
                    "revives": 20345,
                    "teamKills": 1566,
                    "winPercent": "55.70%",
                    "wins": 22957
                }
            },

I'll take a look at the code and see if I can come up with something for a PR but I figured I'd open an issue as well for extra input if maybe it's my own issue.

@EntuvuInteractive
Copy link

Have you found a solution to this. I personally have the same issue. The data is always the same no matter which profile I pull. The current season is fine but only has ranked so doesn't help with what I'm trying to do.

@SwiftCODA
Copy link
Owner

Have you found a solution to this. I personally have the same issue. The data is always the same no matter which profile I pull. The current season is fine but only has ranked so doesn't help with what I'm trying to do.

I believe the platform parameter must instead be platformGroup and the values can either be PC or CONSOLE. Will need to write a switch statement and maybe use a new enum for this. I'm a bit busy right now but if you want to make a PR, go for it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants