Git Product home page Git Product logo

valorantapi's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mattsheydwasser

valorantapi's Issues

Access to match history limited to the 10 last matchs maximum

Hi everyone,

Not sure if it is a bug report or a limitation of the RIOT API, but I will put it as a bug report.

๐Ÿ› Bug Report

It seems only the last 10 match in Match History can be accessed when using valo_api.endpoints.get_match_history_by_name_v3.

๐Ÿ”ฌ How To Reproduce

Steps to reproduce the behavior:

Use size >= 10 in function, only the last 10 matches are retrieved.

Code sample

Called valo_api.endpoints.get_match_history_by_name_v3([REGION], [PLAYER], [TAG], size=100)

Environment

  • OS: Linux
  • Python version, get it with: 3.8.10

๐Ÿ“ˆ Expected behavior

In other trackers online they seem to have more matches available, so I would guess those information are still RIOT database and should be accessible through the API?

Thanks you for your help and for the library!

The call to get_match_history_by_puuid_v3 throws exception

๐Ÿ› Bug Report

When calling the method get_match_history_by_puuid_v3 we now get an exception.

๐Ÿ”ฌ How To Reproduce

Steps to reproduce the behavior:

Code sample

  File "C:\Users\ander\Documents\repos\valstats\valstats.py", line 190, in get_game_history
    response = valo_api.get_match_history_by_puuid_v3(region=auth.region, puuid=user_id, size=10, game_mode=typ)
  File "C:\Users\ander\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\valo_api\endpoint.py", line 88, in wrapper
    return self._get_endpoint(*args, **kwargs)
  File "C:\Users\ander\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\valo_api\endpoint.py", line 154, in _get_endpoint
    return self.parse_response(response, response.content)
  File "C:\Users\ander\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\valo_api\endpoint.py", line 179, in parse_response
    result = msgspec.json.decode(content, type=return_type)
msgspec.ValidationError: Expected `int`, got `float` - at `$.data[0].players.all_players[0].economy.spent.average

Environment

Python 3.11.9
valo_api==2.0.7

Screenshots

๐Ÿ“ˆ Expected behavior

The call should succeed and return the same payload as before.

๐Ÿ“Ž Additional context

This used to work a couple of weeks ago. It seems the returned payload has changed format.

Speed Up

Using msgspec json decode is much faster than using the InitOptions class.

Should be easy to replace.

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.