Skip to content

Weekly statistics aren't returned correctly #60

@derNiklaas

Description

@derNiklaas

Trying to query any kind of weekly stats is currently returning "0" for game statistics (e.g. pw_solo_medals_banked).

The weekly stat in the query below are daily stat.

Using this query:

query PlayerByUsername {
    playerByUsername(username: "Fedoxtreme") {
        statistics {
            lifetime: rotationValue(statisticKey: "pw_solo_medals_banked", rotation: LIFETIME)
            monthly: rotationValue(statisticKey: "pw_solo_medals_banked", rotation: MONTHLY)
            weekly: rotationValue(statisticKey: "pw_solo_medals_banked", rotation: WEEKLY)
            daily: rotationValue(statisticKey: "pw_solo_medals_banked", rotation: DAILY)
        }
    }
}

I'm getting the following results:

{
    "data": {
        "playerByUsername": {
            "statistics": {
                "lifetime": 18438,
                "monthly": 462,
                "weekly": 0,
                "daily": 21
            }
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions