Skip to content

Commit

Permalink
Merge pull request #78 from OCHA-DAP/admin_level_wfp
Browse files Browse the repository at this point in the history
Revert wfp admin level change
  • Loading branch information
b-j-mills authored Feb 12, 2025
2 parents 76e2734 + f2b2657 commit 6fd0f61
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Changed endpoint names for conflict event, food price, food security, population, poverty rate, and refugees tables
- Include origin and asylum in data availability for refugees and returnees
- Added admin level to WFP Market table

## 0.9.6

Expand Down
1 change: 0 additions & 1 deletion src/hapi_schema/db_views_as_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,6 @@ class DBWfpMarketVAT(Base):
admin2_name: Mapped[str] = mapped_column(String(512), index=True)
admin2_is_unspecified: Mapped[bool] = mapped_column(Boolean)
admin1_ref: Mapped[int] = mapped_column(Integer)
admin_level: Mapped[int] = mapped_column(Integer, index=True)


class DBAvailabilityVAT(Base):
Expand Down
2 changes: 0 additions & 2 deletions src/hapi_schema/db_wfp_market.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from hapi_schema.utils.base import Base
from hapi_schema.utils.constraints import latlon_constraint
from hapi_schema.utils.view_params import ViewParams
from hapi_schema.views import get_admin2_case


class DBWFPMarket(Base):
Expand Down Expand Up @@ -51,7 +50,6 @@ class DBWFPMarket(Base):
DBAdmin2.name.label("admin2_name"),
DBAdmin2.is_unspecified.label("admin2_is_unspecified"),
DBAdmin2.admin1_ref.label("admin1_ref"),
get_admin2_case(DBWFPMarket),
).select_from(
# Join market to admin2 to admin1 to loc
DBWFPMarket.__table__.join(
Expand Down
1 change: 0 additions & 1 deletion tests/test_views_as_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,6 @@ def test_wfp_market_vat(
"admin1_name",
"admin2_code",
"admin2_name",
"admin_level",
]
run_columns_test(
"wfp_market_vat", "wfp_market_view", view_params_wfp_market
Expand Down

0 comments on commit 6fd0f61

Please sign in to comment.