Skip to content

Commit

Permalink
Merge pull request #117 from abennici/#107
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel authored Feb 10, 2021
2 parents 97419bb + b25ab4a commit 5f8de8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/geoflow_handler_contact.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ handle_contacts_df <- function(config, source){
contact$setCountry(source_contact[,"Country"])
contact$setVoice(source_contact[,"Voice"])
contact$setFacsimile(source_contact[,"Facsimile"])
contact$setWebsiteUrl(source_contact[,"WebsiteUrl"])
if(!is.na(source_contact[,"WebsiteUrl"])& source_contact[,"WebsiteUrl"]!="") contact$setWebsiteUrl(source_contact[,"WebsiteUrl"])
contact$setWebsiteName(source_contact[,"WebsiteName"])

srcId <- sanitize_str(source_contact[,"Identifier"])
Expand Down
4 changes: 2 additions & 2 deletions R/geoflow_handler_entity.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ handle_entities_df <- function(config, source){

#title
entity$setTitle(source_entity[,"Title"])

#description
src_description <- sanitize_str(source_entity[,"Description"])
allowedDescKeys <- entity$getAllowedKeyValuesFor("descriptions")
Expand Down Expand Up @@ -265,7 +265,7 @@ handle_entities_gsheet <- function(config, source){
handle_entities_csv <- function(config, source){

#read csv TODO -> options management: sep, encoding etc
source <- read.csv(source)
source <- read.csv(source,stringsAsFactors = F)

#apply generic handler
entities <- handle_entities_df(config, source)
Expand Down

0 comments on commit 5f8de8a

Please sign in to comment.