Skip to content

Commit

Permalink
UNDO Destroy AOIs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaraphael committed Oct 25, 2023
1 parent 1618052 commit fd759b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions alembic/versions/5e03ce584f3c_add_eez.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def upgrade() -> None:
session = orm.Session(bind=bind)

eez = get_eez_from_url() # geojson.load(open("EEZ_and_HighSeas_20230410.json"))
eez = {"features": []} # noqa
for feat in eez.get("features"):
sovereign_keys = [
k for k in list(feat["properties"].keys()) if k.startswith("SOVEREIGN")
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/c0bd1215a3ca_add_iho.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def upgrade() -> None:
session = orm.Session(bind=bind)

iho = get_iho_from_url()
iho = {"features": []} # noqa
for feat in iho.get("features"):
with session.begin():
aoi_iho = database_schema.AoiIho(
Expand Down
2 changes: 1 addition & 1 deletion alembic/versions/f9b7166c86b7_add_mpa.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def upgrade() -> None:
session = orm.Session(bind=bind)

mpa = get_mpa_from_url()

mpa = {"features": []} # noqa
for feat in mpa.get("features"):
with session.begin():
aoi_mpa = database_schema.AoiMpa(
Expand Down

0 comments on commit fd759b7

Please sign in to comment.