Skip to content

Commit

Permalink
Correcting left assignment for R
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdickinson committed Dec 4, 2024
1 parent 33b4743 commit 02e3446
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/records.R
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ elementVarName <- function(y, style) {

colNameStyle <- style$columnNames[[1]]

colName = NULL
colName <- NULL

if(colNameStyle == "code") {
colName <- y[["code"]]
Expand Down Expand Up @@ -1142,14 +1142,14 @@ tbl.src_activityInfo <- function(src, formTree, style = defaultColumnStyle(),...
stopifnot(formTree$root %in% dplyr::src_tbls(src))

recordsMetadata <- getTotalLastEditTime(formTree)
totalRecords = recordsMetadata[["totalRecords"]]
lastEditTime = recordsMetadata[["lastEditTime"]]
totalRecords <- recordsMetadata[["totalRecords"]]
lastEditTime <- recordsMetadata[["lastEditTime"]]

step = firstStep(formTree, style, totalRecords)
step <- firstStep(formTree, style, totalRecords)
idStyle <- style
idStyle$columnNames <- "id"

elements = namedElementVarList(formTree = formTree, style = idStyle)
elements <- namedElementVarList(formTree = formTree, style = idStyle)

dplyr::make_tbl(
c("activityInfoRemoteRecords", "lazy"),
Expand All @@ -1173,7 +1173,7 @@ getTotalLastEditTime <- function(formTree) {
df <- queryTable(formTree$root, columns = list("id"="_id", "lastEditTime" = "_lastEditTime"), asTibble = TRUE, makeNames = FALSE, window = c(0L,1L), sort=list(list(dir = "DESC", field = "_lastEditTime")))
totalRecords <- attr(df, "totalRows")
}
lastEditTime = df[[1,"lastEditTime"]]
lastEditTime <- df[[1,"lastEditTime"]]
list(totalRecords = totalRecords, lastEditTime = lastEditTime, df = df)
}

Expand Down

0 comments on commit 02e3446

Please sign in to comment.