Skip to content

Commit

Permalink
Merge pull request #51 from Arkoniak/fix_load
Browse files Browse the repository at this point in the history
Fix name occurences
  • Loading branch information
Arkoniak authored Apr 29, 2021
2 parents 006b63a + 0fabaaf commit 66cc4a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GeoIP"
uuid = "abcde121-99a1-4d4f-92c5-2a3c6888d26a"
authors = ["Andrey Oskin", "Seth Bromberger", "contributors: https://github.com/JuliaWeb/GeoIP.jl/graphs/contributors"]
version = "0.5.0"
version = "0.5.1"

[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Expand Down
4 changes: 2 additions & 2 deletions src/data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ function loadzip(datadir, zipfile)
local locs
try
for f in r.files
if f.name == "GeoLite2-City-Locations-en.csv"
if occursin("GeoLite2-City-Locations-en.csv", f.name)
v = Vector{UInt8}(undef, f.uncompressedsize)
locs = read!(f, v) |> CSV.File |> DataFrame
elseif f.name == "GeoLite2-City-Blocks-IPv4.csv"
elseif occursin("GeoLite2-City-Blocks-IPv4.csv", f.name)
v = Vector{UInt8}(undef, f.uncompressedsize)
blocks = read!(f, v) |> CSV.File |> DataFrame
end
Expand Down

2 comments on commit 66cc4a7

@Arkoniak
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/35630

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.1 -m "<description of version>" 66cc4a73d1809b65ed11af1cac2ea1c91622d459
git push origin v0.5.1

Please sign in to comment.