update price scraping output, and remove call to views/put-hints!
the put-hints! call wouldn't really work when this price scraping is performed anyway (from the command line)
This commit is contained in:
parent
c5b0eda139
commit
f528abc479
|
@ -15,13 +15,12 @@
|
||||||
(db/verify-connection)
|
(db/verify-connection)
|
||||||
(if-let [price-scraper (get price-scrapers source)]
|
(if-let [price-scraper (get price-scrapers source)]
|
||||||
(do
|
(do
|
||||||
(doseq [set (sets/get-set-codes)]
|
(doseq [{:keys [code gatherer_code] :as set} (sets/get-set-codes)]
|
||||||
(println "Scraping prices for set:" set)
|
(println "Scraping prices for set:" code (if gatherer_code (str "(" gatherer_code ")") ""))
|
||||||
(let [{:keys [source prices normalized-name?]} (scrape price-scraper set)]
|
(let [{:keys [source prices normalized-name?]} (scrape price-scraper set)]
|
||||||
(if prices
|
(if prices
|
||||||
(cards/update-prices! source prices {:normalized-name? normalized-name?})
|
(cards/update-prices! source prices {:normalized-name? normalized-name?})
|
||||||
(println "Could not obtain prices for set:" set))))
|
(println "Could not obtain prices for set:" code (if gatherer_code (str "(" gatherer_code ")") ""))))))
|
||||||
(views/put-hints! view-system [(views/hint nil #{:card_prices} hint-type)]))
|
|
||||||
(println "No price scraper \"" source "\" found.")))
|
(println "No price scraper \"" source "\" found.")))
|
||||||
([]
|
([]
|
||||||
(println "Updating prices using all available scrapers.")
|
(println "Updating prices using all available scrapers.")
|
||||||
|
|
Loading…
Reference in a new issue