Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 702a90e864 | |||
| c8ce6fea5a |
@@ -527,7 +527,7 @@
|
|||||||
|
|
||||||
(comment
|
(comment
|
||||||
|
|
||||||
(set-riot-api-key :RIOT_DEV_KEY "RGAPI-bbbed5c8-d4d7-4de4-a7e7-b8366afee5a4")
|
(set-riot-api-key :RIOT_DEV_KEY "RGAPI-85aa58ae-ab2a-4092-823b-f9ff6e346916")
|
||||||
(deref (:RIOT_DEV_KEY RIOT-KEYS))
|
(deref (:RIOT_DEV_KEY RIOT-KEYS))
|
||||||
|
|
||||||
(call-riot-api :lol-account-by-riot-id :path-params {:player-name "Walid Georgey"
|
(call-riot-api :lol-account-by-riot-id :path-params {:player-name "Walid Georgey"
|
||||||
|
|||||||
@@ -214,10 +214,12 @@
|
|||||||
tft-puuid (get-tft-puuid player-name player-tag)]
|
tft-puuid (get-tft-puuid player-name player-tag)]
|
||||||
(when @debug (println "get-matches Params") (pp/pprint call-params))
|
(when @debug (println "get-matches Params") (pp/pprint call-params))
|
||||||
(cond-> []
|
(cond-> []
|
||||||
lol (concat (filter-by-dates
|
(and lol (some? lol-puuid))
|
||||||
|
(concat (filter-by-dates
|
||||||
call-params (map #(add-calculated-data lol-puuid (get-lol-match-data %))
|
call-params (map #(add-calculated-data lol-puuid (get-lol-match-data %))
|
||||||
(get-lol-matches lol-puuid call-params))))
|
(get-lol-matches lol-puuid call-params))))
|
||||||
tft (concat (filter-by-dates
|
(and tft (some? tft-puuid))
|
||||||
|
(concat (filter-by-dates
|
||||||
call-params (map #(add-calculated-data tft-puuid (get-tft-match-data %))
|
call-params (map #(add-calculated-data tft-puuid (get-tft-match-data %))
|
||||||
(get-tft-matches tft-puuid call-params)))))))
|
(get-tft-matches tft-puuid call-params)))))))
|
||||||
|
|
||||||
@@ -242,7 +244,12 @@
|
|||||||
(let [response (call-riot-api :tft-spectator
|
(let [response (call-riot-api :tft-spectator
|
||||||
:path-params {:puuid puuid})
|
:path-params {:puuid puuid})
|
||||||
http-code (:http-code response)]
|
http-code (:http-code response)]
|
||||||
(= 200 http-code)))
|
(cond
|
||||||
|
(= 200 http-code) true
|
||||||
|
(= 404 http-code) false
|
||||||
|
:else (str "unknown, error " http-code))
|
||||||
|
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
(defn create-playing
|
(defn create-playing
|
||||||
|
|||||||
Reference in New Issue
Block a user