From 3e3017f31ad212025cac405767e557b64a10cca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro?= Date: Fri, 14 Jun 2024 03:36:26 +0200 Subject: [PATCH] request only rankeds --- apps/lol_api/lib/api/match_api.ex | 2 +- apps/scrapper/lib/scrapper/processor/match_processor.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/lol_api/lib/api/match_api.ex b/apps/lol_api/lib/api/match_api.ex index 25500bd..0a3323c 100644 --- a/apps/lol_api/lib/api/match_api.ex +++ b/apps/lol_api/lib/api/match_api.ex @@ -1,7 +1,7 @@ defmodule LoLAPI.MatchApi do require Logger @match_base_endpoint "https://europe.api.riotgames.com/lol/match/v5/matches/%{matchid}" - @puuid_matches_base_endpoint "https://europe.api.riotgames.com/lol/match/v5/matches/by-puuid/%{puuid}/ids" + @puuid_matches_base_endpoint "https://europe.api.riotgames.com/lol/match/v5/matches/by-puuid/%{puuid}/ids?queue=420" @doc """ Get match by id diff --git a/apps/scrapper/lib/scrapper/processor/match_processor.ex b/apps/scrapper/lib/scrapper/processor/match_processor.ex index 36782d3..23cada7 100644 --- a/apps/scrapper/lib/scrapper/processor/match_processor.ex +++ b/apps/scrapper/lib/scrapper/processor/match_processor.ex @@ -58,7 +58,7 @@ defmodule Scrapper.Processor.MatchProcessor do "#{decoded_match.info.gameVersion}" ) - queue_id -> + _queue_id -> Storage.MatchStorage.S3MatchStorage.store_match(match_id, raw_match, "matches") end