Skip to content

Commit

Permalink
🐛 Ignore some bugged values
Browse files Browse the repository at this point in the history
  • Loading branch information
jh0ker committed Nov 2, 2023
1 parent 3af50e9 commit 97e1330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ddj_cloud/scrapers/talsperren/federations/agger.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def _get_reservoir_records(self, name: str) -> list[ReservoirRecord]:
row[value_idx],
)
for row in data[0]["data"]
if row[value_idx] >= 0 # Negative values seem to be errors
]

def get_data(self, **kwargs) -> list[ReservoirRecord]:
Expand Down
1 change: 1 addition & 0 deletions ddj_cloud/scrapers/talsperren/federations/eifel_rur.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def _get_reservoir_records(
float(row["value"]),
)
for row in rows[1:]
if float(row["value"]) >= 0 # Negative values seem to be errors
]

def get_data(
Expand Down

0 comments on commit 97e1330

Please sign in to comment.