Skip to content

Commit b4f7845

Browse files
author
Mike
committed
Add batch_mode and skip_validation to mark broken call
Add downloads badge
1 parent 896c50b commit b4f7845

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[![Coverage Status](https://codecov.io/gh/OCHA-DAP/hdx-python-api/branch/main/graph/badge.svg?token=JpWZc5js4y)](https://codecov.io/gh/OCHA-DAP/hdx-python-api)
33
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
44
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
5+
[![Downloads](https://pepy.tech/badge/hdx-python-api)](https://pepy.tech/project/hdx-python-api)
56

67
The HDX Python API Library is designed to enable you to easily develop code that interacts with the [Humanitarian Data
78
Exchange](https://data.humdata.org/) (HDX) platform. The major goal of the library is to make pushing and pulling data
@@ -10,4 +11,4 @@ from HDX as simple as possible for the end user.
1011
For more information, please read the [documentation](https://hdx-python-api.readthedocs.io/en/latest/).
1112

1213
This library is part of the [Humanitarian Data Exchange](https://data.humdata.org/) (HDX) project. If you have
13-
humanitarian related data, please upload your datasets to HDX.
14+
humanitarian related data, please upload your datasets to HDX.

src/hdx/data/resource.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,8 @@ def mark_broken(self) -> None:
682682
"resource",
683683
self.data["id"],
684684
action=self.actions()["broken"],
685+
batch_mode="KEEP_OLD",
686+
skip_validation=True,
685687
)
686688
if success:
687689
self.data = result

0 commit comments

Comments
 (0)