Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 702a90e864 | |||
| c8ce6fea5a |
@@ -527,7 +527,7 @@
|
||||
|
||||
(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))
|
||||
|
||||
(call-riot-api :lol-account-by-riot-id :path-params {:player-name "Walid Georgey"
|
||||
|
||||
@@ -214,12 +214,14 @@
|
||||
tft-puuid (get-tft-puuid player-name player-tag)]
|
||||
(when @debug (println "get-matches Params") (pp/pprint call-params))
|
||||
(cond-> []
|
||||
lol (concat (filter-by-dates
|
||||
call-params (map #(add-calculated-data lol-puuid (get-lol-match-data %))
|
||||
(get-lol-matches lol-puuid call-params))))
|
||||
tft (concat (filter-by-dates
|
||||
call-params (map #(add-calculated-data tft-puuid (get-tft-match-data %))
|
||||
(get-tft-matches tft-puuid call-params)))))))
|
||||
(and lol (some? lol-puuid))
|
||||
(concat (filter-by-dates
|
||||
call-params (map #(add-calculated-data lol-puuid (get-lol-match-data %))
|
||||
(get-lol-matches lol-puuid call-params))))
|
||||
(and tft (some? tft-puuid))
|
||||
(concat (filter-by-dates
|
||||
call-params (map #(add-calculated-data tft-puuid (get-tft-match-data %))
|
||||
(get-tft-matches tft-puuid call-params)))))))
|
||||
|
||||
(comment
|
||||
(reset! debug true)
|
||||
@@ -242,7 +244,12 @@
|
||||
(let [response (call-riot-api :tft-spectator
|
||||
:path-params {:puuid puuid})
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user