Skip to content

Commit

Permalink
updated to http v1
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodaigh committed Jul 6, 2022
1 parent 78ed50f commit 0a912a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TableScraper"
uuid = "3d876f86-fca9-45cb-9864-7207416dc431"
authors = ["ZJ <[email protected]>"]
version = "0.1.3"
version = "0.1.4"

[deps]
Cascadia = "54eefc05-d75b-58de-a785-1a3403f0919f"
Expand All @@ -12,7 +12,7 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
[compat]
Cascadia = "1"
Gumbo = "0.8"
HTTP = "0.9"
HTTP = "1"
Tables = "1"
julia = "1"

Expand Down
7 changes: 6 additions & 1 deletion src/Tables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end

Tables.istable(::Table)=true
Tables.rowaccess(::Table)=true
Tables.columnaccess(::Table)=true
# Tables.columnaccess(::Table)=false
Tables.columnnames(t::Table)=t.columnnames
Tables.rows(t::Table)=t

Expand Down Expand Up @@ -48,5 +48,10 @@ function Tables.getcolumn(t::TableRow, nm::Symbol)
row[col]
end

function Tables.getcolumn(t::TableRow, nm::String)
Tables.getcolumn(t, Symbol(nm))
end



Tables.columnnames(t::TableRow) = getfield(t, :source).columnnames

2 comments on commit 0a912a6

@xiaodaigh
Copy link
Owner 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/63728

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.1.4 -m "<description of version>" 0a912a6e7e540a647348f03cb5dfbe7be6e75b9b
git push origin v0.1.4

Please sign in to comment.