mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
Remove Flex 3v3 stats and tmp file from Riot application
This commit is contained in:
parent
84eae5380f
commit
1846f84491
2 changed files with 1 additions and 2 deletions
|
|
@ -1 +0,0 @@
|
||||||
a045114f-3d93-45ad-a4c2-27fa82d7eadb
|
|
||||||
|
|
@ -95,7 +95,7 @@ const getAccountInfos = function (res) {
|
||||||
const getRanked = function (res) {
|
const getRanked = function (res) {
|
||||||
request(`https://${data.region}.api.riotgames.com/lol/league/v4/entries/by-summoner/${data.summonerID}?api_key=${data.key}`, function (error, response, body) {
|
request(`https://${data.region}.api.riotgames.com/lol/league/v4/entries/by-summoner/${data.summonerID}?api_key=${data.key}`, function (error, response, body) {
|
||||||
if (!error && response.statusCode == 200) {
|
if (!error && response.statusCode == 200) {
|
||||||
let JSONBody = JSON.parse(body).filter(e => e.queueType !== 'RANKED_TFT');
|
let JSONBody = JSON.parse(body).filter(e => e.queueType !== 'RANKED_TFT' && e.queueType !== 'RANKED_FLEX_TT');
|
||||||
if (JSONBody.length > 0) {
|
if (JSONBody.length > 0) {
|
||||||
data.finalJSON.push(...JSONBody);
|
data.finalJSON.push(...JSONBody);
|
||||||
if (JSONBody.length === 1) data.finalJSON.push(null);
|
if (JSONBody.length === 1) data.finalJSON.push(null);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue