Skip to content

Commit 7715dd9

Browse files
committed
fix 'updated at' timestamp on index; #49
1 parent df260c3 commit 7715dd9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: dashboard
22
Title: What the Package Does (One Line, Title Case)
3-
Version: 0.2.2.087
3+
Version: 0.2.2.088
44
Authors@R:
55
person(given = "First",
66
family = "Last",

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"name": "dashboard: What the Package Does (One Line, Title Case)",
77
"codeRepository": "https://github.com/ropensci-review-tools/dashboard",
88
"license": "https://spdx.org/licenses/MIT",
9-
"version": "0.2.2.87",
9+
"version": "0.2.2.88",
1010
"programmingLanguage": {
1111
"@type": "ComputerLanguage",
1212
"name": "R",

quarto/index.qmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ req <- httr2::request (u_runs) |>
4848
resp <- httr2::req_perform (req)
4949
body <- httr2::resp_body_json (resp)$workflow_runs
5050
index <- which (vapply (body [[1]], function (i) !is.list (i) && !is.null (i), logical (1L)))
51-
index <- index [-grep ("previous", names (index))]
51+
index_prev <- grep ("previous", names (index))
52+
if (length (index_prev) > 0L) {
53+
index <- index [-index_prev]
54+
}
5255
run_dat <- do.call (rbind, lapply (body, function (b) as.data.frame (b [index])))
5356
# run_dat <- run_dat [which (run_dat$conclusion == "success"), ]
5457

0 commit comments

Comments
 (0)