Giter Site home page Giter Site logo

vlresports's Issues

API returns inactive players as staff

I tried using your API to get Karmine Corp data from this endpoint : https://vlr.orlandomm.net/api/v1/teams/8877

{
    "players": [
        {
            "id": "302",
            "url": "https://www.vlr.gg/player/302/ze1sh",
            "user": "ZE1SH",
            "name": "Ahmed El Sheikh",
            "img": "https://owcdn.net/img/645c01ead0e8c.png",
            "country": "fr"
        },
        {
            "id": "2625",
            "url": "https://www.vlr.gg/player/2625/sh1n",
            "user": "sh1n",
            "name": "Ryad Ensaad",
            "img": "https://owcdn.net/img/6410bb380af8b.png",
            "country": "fr"
        }
    ],
    "staff": [
        {
            "id": "1284",
            "url": "https://www.vlr.gg/player/1284/mikee",
            "user": "mikee",
            "name": "Michael Lim",
            "tag": "Inactive",
            "img": "https://owcdn.net/img/639a9ab8487bb.png",
            "country": "fr"
        },
        {
            "id": "92",
            "url": "https://www.vlr.gg/player/92/scream",
            "user": "ScreaM",
            "name": "Adil Benrlitom",
            "tag": "Inactive",
            "img": "https://owcdn.net/img/64249de08c2e0.png",
            "country": "be"
        },
        {
            "id": "14669",
            "url": "https://www.vlr.gg/player/14669/nivera",
            "user": "Nivera",
            "name": "Nabil Benrlitom",
            "tag": "Inactive",
            "img": "https://owcdn.net/img/64249dd8899a0.png",
            "country": "be"
        },
        {
            "id": "4603",
            "url": "https://www.vlr.gg/player/4603/xms",
            "user": "xms",
            "name": "Alexandre Forté",
            "tag": "Inactive",
            "img": "https://owcdn.net/img/64249dcfba4ea.png",
            "country": "fr"
        }
    ]
}

However, as you can see, it returns the inactive players as staff. I guess it happens when the team has no staff.

Thank you !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.