File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 12
12
def process_ej_dump (file_path : str ) -> None :
13
13
"""Process EJ dump file and create database entries."""
14
14
15
- destination_server = EnvironmentalJusticeRow .DestinationServerChoices . DEV
15
+ data_source = EnvironmentalJusticeRow .DataSourceChoices . ML_PRODUCTION
16
16
17
17
# Clear existing data
18
- EnvironmentalJusticeRow .objects .filter (destination_server = destination_server ).delete ()
18
+ EnvironmentalJusticeRow .objects .filter (data_source = data_source ).delete ()
19
19
20
20
# Load the preprocessed data
21
21
with open (file_path ) as f :
@@ -24,7 +24,7 @@ def process_ej_dump(file_path: str) -> None:
24
24
# Create database entries
25
25
for entry in clean_data :
26
26
ej_row = EnvironmentalJusticeRow (
27
- destination_server = destination_server ,
27
+ data_source = data_source ,
28
28
sde_link = entry ["sde_link" ],
29
29
dataset = entry ["dataset" ],
30
30
description = entry ["description" ],
@@ -47,4 +47,4 @@ def process_ej_dump(file_path: str) -> None:
47
47
ej_row .save ()
48
48
49
49
50
- process_ej_dump ("backups/ej_dump_20241120_211754 .json" )
50
+ process_ej_dump ("backups/ej_dump_20241203_170124 .json" )
You can’t perform that action at this time.
0 commit comments