@@ -28,22 +28,23 @@ def process_ej_dump(file_path: str) -> None:
28
28
sde_link = entry ["sde_link" ],
29
29
dataset = entry ["dataset" ],
30
30
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" ],
32
34
format = entry ["format" ],
33
35
temporal_extent = entry ["temporal_extent" ],
34
36
intended_use = entry ["intended_use" ],
35
37
source_link = entry ["source_link" ],
36
38
indicators = entry ["indicators" ],
37
39
strengths = entry ["strengths" ],
38
- weaknesses = entry ["weaknesses" ],
39
40
latency = entry ["latency" ],
40
41
geographic_coverage = entry ["geographic_coverage" ],
41
42
data_visualization = entry ["data_visualization" ],
42
43
temporal_resolution = entry ["temporal_resolution" ],
43
44
spatial_resolution = entry ["spatial_resolution" ],
44
- projects = entry ["projects" ],
45
+ project = entry ["projects" ], # Changed from 'projects' to 'project' to match model
45
46
)
46
47
ej_row .save ()
47
48
48
49
49
- process_ej_dump ("backups/ej_dump_20241017_133151 .json" )
50
+ process_ej_dump ("backups/ej_dump_20241120_211754 .json" )
0 commit comments