Repository navigation
Commit dedf4d6
Remove the dead, duplicate-keyed fetch_assets() (#20)
fetch_assets() built its result with `sites =` twice: the second entry
fetched the `forms` table but stored it under `sites`. R keeps both
entries and `$` returns the first, so `$forms` was unreachable and
`$sites` silently resolved to landing_sites.
The function has no callers — in coasts or in any downstream pipeline.
ingest_assets() is the live producer of the assets snapshot and has a
correct `forms =` entry. Mozambique and Kenya each carry their own local
fetch_assets() with a single `sites`, so nothing resolves to this one.
Delete it rather than fix the key: an exported, broken near-namesake of
the function actually in use is a trap for the next caller. fetch_asset()
(singular), which ingest_assets() calls nine times, is untouched.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent f33ca3b commit dedf4d6
3 files changed
Lines changed: 0 additions & 92 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
This file was deleted.
0 commit comments