Skip to content

Commit b60b01b

Browse files
committed
website needs both diseases...
1 parent 825d3bf commit b60b01b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/utils.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,14 @@ update_site <- function() {
311311
rename(forecast_date = dates_1, generation_date = dates_2) %>%
312312
mutate(
313313
forecast_date = ymd(forecast_date),
314-
generation_date = ymd(generation_date)
314+
generation_date = ymd(generation_date),
315+
disease = str_match(filename, "flu|covid")
315316
)
316317

317318
# use the most recently generated forecast, and sort descending on the
318319
# forecast date
319320
used_reports <- report_table %>%
320-
group_by(forecast_date) %>%
321+
group_by(forecast_date, disease) %>%
321322
arrange(generation_date) %>%
322323
filter(generation_date == max(generation_date)) %>%
323324
ungroup() %>%

0 commit comments

Comments
 (0)