Skip to content

Commit 7cfee46

Browse files
authored
Merge pull request #52 from OCHA-DAP/main
Ignore rows with populated Error column (OCHA-DAP#220)
2 parents 2775b67 + 6068787 commit 7cfee46

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [0.10.35] = 2025-01-27
8+
9+
### Changed
10+
11+
- Ignore any HNO rows with a populated Error column
12+
713
## [0.10.34] = 2025-01-23
814

915
### Changed

requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# uv pip compile pyproject.toml --resolver=backtracking --all-extras -o requirements.txt
33
annotated-types==0.7.0
44
# via pydantic
5-
attrs==24.3.0
5+
attrs==25.1.0
66
# via
77
# frictionless
88
# jsonlines
@@ -156,7 +156,7 @@ pyasn1==0.6.1
156156
# rsa
157157
pyasn1-modules==0.4.1
158158
# via google-auth
159-
pydantic==2.10.5
159+
pydantic==2.10.6
160160
# via frictionless
161161
pydantic-core==2.27.2
162162
# via pydantic
@@ -196,7 +196,7 @@ quantulum3==0.9.2
196196
# via hdx-python-api
197197
ratelimit==2.2.1
198198
# via hdx-python-utilities
199-
referencing==0.36.1
199+
referencing==0.36.2
200200
# via
201201
# jsonschema
202202
# jsonschema-specifications

src/hapi/pipelines/database/humanitarian_needs.py

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def populate(self) -> None:
5050
max_admin_level = self._admins.get_max_admin_from_headers(headers)
5151
# Admin 1 PCode,Admin 2 PCode,Sector,Gender,Age Group,Disabled,Population Group,Population,In Need,Targeted,Affected,Reached
5252
for row in rows:
53+
error = row.get("Error")
54+
if error:
55+
continue
5356
countryiso3 = row["Country ISO3"]
5457
if countryiso3 == "#country+code": # ignore HXL row
5558
continue

0 commit comments

Comments
 (0)