Skip to content

Commit

Permalink
Update modules/data.atmosphere/R/read.register.R
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Black <[email protected]>
  • Loading branch information
Sweetdevil144 and infotroph authored Jul 10, 2024
1 parent 9b69428 commit 0ac2c93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/data.atmosphere/R/read.register.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ read.register <- function(register.xml, con) {
(!is.null(register$format$id) & is.null(register$format$mimetype))) {
# Retrieve format name and mimetype from the database
query.format.info <- PEcAn.DB::db.query(
paste("SELECT name, mimetype_id AS mimetype FROM formats WHERE id = ", register$format$id), con
paste(
"SELECT name, type_string AS mimetype",
"FROM formats JOIN mimetypes ON formats.mimetype_id = mimetypes.id",
"WHERE formats.id = ", register$format$id),
con
)

register$format$name <- query.format.info$name
Expand Down

0 comments on commit 0ac2c93

Please sign in to comment.