Skip to content

Commit a6fe59c

Browse files
committed
update limitations to use weaknesses data
1 parent c2468ad commit a6fe59c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/ej/cmr_to_models.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,23 @@ def process_ej_dump(file_path: str) -> None:
2828
sde_link=entry["sde_link"],
2929
dataset=entry["dataset"],
3030
description=entry["description"],
31-
limitations=entry["limitations"],
31+
description_simplified="", # This field exists in model but not in data
32+
# I think the "limitations" in SDE is equivalent to "weaknesses" from emily's data
33+
limitations=entry["weaknesses"],
3234
format=entry["format"],
3335
temporal_extent=entry["temporal_extent"],
3436
intended_use=entry["intended_use"],
3537
source_link=entry["source_link"],
3638
indicators=entry["indicators"],
3739
strengths=entry["strengths"],
38-
weaknesses=entry["weaknesses"],
3940
latency=entry["latency"],
4041
geographic_coverage=entry["geographic_coverage"],
4142
data_visualization=entry["data_visualization"],
4243
temporal_resolution=entry["temporal_resolution"],
4344
spatial_resolution=entry["spatial_resolution"],
44-
projects=entry["projects"],
45+
project=entry["projects"], # Changed from 'projects' to 'project' to match model
4546
)
4647
ej_row.save()
4748

4849

49-
process_ej_dump("backups/ej_dump_20241017_133151.json")
50+
process_ej_dump("backups/ej_dump_20241120_211754.json")

0 commit comments

Comments
 (0)