Skip to content

Commit 670c39a

Browse files
committed
remove old classifications as part of ej ingest
1 parent c581f83 commit 670c39a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/ej/cmr_to_models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ def categorize_processing_level(level):
6868
return "advanced analysis"
6969

7070

71-
ej_dump = json.load(open("backups/ej_dump_20240814_143036.json"))
71+
# remove existing data
72+
EnvironmentalJusticeRow.objects.filter(destination_server=EnvironmentalJusticeRow.DestinationServerChoices.DEV).delete()
73+
74+
ej_dump = json.load(open("backups/ej_dump_20240815_112916.json"))
7275
for dataset in ej_dump:
7376
ej_row = EnvironmentalJusticeRow(
7477
destination_server=EnvironmentalJusticeRow.DestinationServerChoices.DEV,

0 commit comments

Comments
 (0)