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

Backend doesnt return Global and Country ranking for players #154

Closed
B0und opened this issue May 20, 2022 · 2 comments
Closed

Backend doesnt return Global and Country ranking for players #154

B0und opened this issue May 20, 2022 · 2 comments

Comments

@B0und
Copy link
Collaborator

B0und commented May 20, 2022

image

@stanriders
Copy link
Owner

stanriders commented May 21, 2022

Gamemodes statistics are only being returned (as well as added/updated) for posts with gamemode set to something other than None.

Example:

{
  "users": [
    {
      "id": "7217455",
      "discord": "StanR#3012",
      "osu": {
        "avatar_url": "https://a.ppy.sh/7217455?1588635261.jpeg",
        "username": "StanR",
        "statistics": {
          "osu": {
            "level": {
              "current": 101,
              "progress": 90
            },
            "global_rank": 9239,
            "pp": 7583.65,
            "ranked_score": 32665320231,
            "hit_accuracy": 98.9824,
            "play_count": 98894,
            "play_time": 5814205,
            "total_score": 217847781329,
            "total_hits": 23602675,
            "maximum_combo": 4591,
            "replays_watched_by_others": 114,
            "is_ranked": true,
            "grade_counts": {
              "ss": 74,
              "ssh": 55,
              "s": 880,
              "sh": 272,
              "a": 1280
            },
            "country_rank": 614
          },
          "taiko": {
            "level": {
              "current": 9,
              "progress": 55
            },
            "global_rank": 0,
            "pp": 0,
            "ranked_score": 2585276,
            "hit_accuracy": 90.4667,
            "play_count": 56,
            "play_time": 4923,
            "total_score": 5863111,
            "total_hits": 7136,
            "maximum_combo": 268,
            "replays_watched_by_others": 0,
            "is_ranked": false,
            "grade_counts": {
              "ss": 2,
              "ssh": 0,
              "s": 3,
              "sh": 0,
              "a": 2
            },
            "country_rank": 0
          }
        },
        "country_code": "RU"
      }
    }
  ],
  "answers": [
    {
      "submissions": [
        {
          "question_id": "6288e016e36d0093ce5081ca",
          "answer": null
        }
      ],
      "user": "7217455"
    }
  ]
}

If the user never submitted replies to any posts with gamemodes then statistics will be null

@B0und
Copy link
Collaborator Author

B0und commented May 21, 2022

Got it, thank you!

@B0und B0und closed this as completed May 21, 2022
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

2 participants