zayKenyon / VALORANT-rank-yoinker

A Python app which retrieves the VALORANT rank and players' equipped skins during a match
https://zayKenyon.github.io/VALORANT-rank-yoinker/
ISC License
433 stars 134 forks source link

valorant-api.com request changes #115

Closed D3CRYPT360 closed 9 months ago

D3CRYPT360 commented 1 year ago

Instead of requesting for the same data eg: (weapons) in different parts of the code. we can store it in memory and access it from anywhere in the code. Have to call the function in the main.py during the start and then we can pass the data to other functions in a variable until eventually the program is closed and reopened again.

So far I have only implemented the getting the data method. but will soon implement calling the function as well as replace all instance of requesting from valorant-api.com found in the code to this method.