You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
656B

  1. spot_fixes_report_list <- list(
  2. list(
  3. # This report is actually an amended report
  4. ids = list(report_id = 195397),
  5. values = list(amended = TRUE)
  6. ),
  7. list(
  8. # This report is actually the first one, not amended
  9. ids = list(report_id = 159437),
  10. values = list(amended = FALSE)
  11. ),
  12. list(
  13. ids = list(report_id = 161042),
  14. values = list(doc_name = "Mid Year Semi-Annual")
  15. )
  16. )
  17. spot_fix_report_list <- function(report_list) {
  18. for (fix in spot_fixes_report_list) {
  19. fix_tbl <- fix |> map(as_tibble) |> unname() |> list_cbind()
  20. report_list <- rows_update(report_list, fix_tbl, by = names(fix$ids))
  21. }
  22. report_list
  23. }