Skip to content

Commit 8a7167f

Browse files
committed
file date input format
1 parent 0fb09cf commit 8a7167f

File tree

1 file changed

+1
-1
lines changed
  • backfill_corrections/delphiBackfillCorrection/R

1 file changed

+1
-1
lines changed

backfill_corrections/delphiBackfillCorrection/R/model.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ get_training_date_range <- function(params) {
306306
} else {
307307
# If only some models are in the cache, they will be used and those
308308
# missing will be regenerated as-of the training end date.
309-
training_end_date <- max(as.Date(substr(model_files, 1, 8)))
309+
training_end_date <- max(as.Date(substr(model_files, 1, 8), "%Y%m%d"))
310310
}
311311
}
312312

0 commit comments

Comments
 (0)