fix Downloads in ch08
This commit is contained in:
parent
c1b56b22b0
commit
e736e3bed8
7
ch08.jl
7
ch08.jl
@ -4,13 +4,14 @@
|
|||||||
|
|
||||||
# Code for section 8.1
|
# Code for section 8.1
|
||||||
|
|
||||||
|
import Downloads
|
||||||
if isfile("puzzles.csv.bz2")
|
if isfile("puzzles.csv.bz2")
|
||||||
@info "file already present"
|
@info "file already present"
|
||||||
else
|
else
|
||||||
@info "fetching file"
|
@info "fetching file"
|
||||||
download("https://database.lichess.org/" *
|
Downloads.download("https://database.lichess.org/" *
|
||||||
"lichess_db_puzzle.csv.bz2",
|
"lichess_db_puzzle.csv.bz2",
|
||||||
"puzzles.csv.bz2")
|
"puzzles.csv.bz2")
|
||||||
end
|
end
|
||||||
|
|
||||||
using CodecBzip2
|
using CodecBzip2
|
||||||
|
Loading…
Reference in New Issue
Block a user