Skip to content

Commit

Permalink
Update ParlGov – 2024 stable release
Browse files Browse the repository at this point in the history
  • Loading branch information
hdigital committed Aug 13, 2024
1 parent 21223db commit 640831a
Show file tree
Hide file tree
Showing 5 changed files with 1,463 additions and 1,462 deletions.
Binary file modified import/parlgov/parlgov-map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions import/parlgov/parlgov.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ library(dbplyr)

# Get/read data ----

db_file <- "source__parlgov.db"
db_file <- "source__parlgov-stable.db"
if (!file.exists(db_file)) {
url <- "https://www.parlgov.org/data/parlgov-development.db"
download.file(url, db_file, mode = "wb")
Expand Down Expand Up @@ -63,7 +63,7 @@ cab_n <-
# party information
`%notin%` <- Negate(`%in%`)

parlgov_url <- "https://parlgov.fly.dev/data/party/%s/%d"
parlgov_url <- "https://parlgov.fly.dev/data/parties/%s/%d"
party_info <-
party_pg |>
select(party_id, country_name_short:family_name, -country_name, -party_name_ascii, -family_name) |>
Expand Down
Loading

0 comments on commit 640831a

Please sign in to comment.