Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Commit b2c9c16

Browse files
committed
Remove property check for adaptation and histoic detail by location
1 parent a804c49 commit b2c9c16

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ historic.<method>
236236
```
237237

238238
* `get_event`(fsids `list`, csv `bool`, [core_limit `int=100`]) - Returns an array of `Historic Event` product for the given historic IDs, and optionally creates a csv file
239+
* `get_events_by_location`(fsids `list`, location_type `string`, csv `bool`, [core_limit `int=100`]) - Returns an array of `Historic Detail` product for the given IDs, location_type, and optionally creates a csv file
239240
* `get_summary`(fsids `list`, location_type `string`, csv `bool`, [core_limit `int=100`]) - Returns an array of `Historic Summary` product for the given IDs, location_type, and optionally creates a csv file
240241

241242
<a name="adaptation"></a>
@@ -248,6 +249,7 @@ adaptation.<method>
248249
```
249250

250251
* `get_project`(fsids `list`, csv `bool`, [core_limit `int=100`]) - Returns an array of `Adaptation Project` product for the given adaptation IDs, and optionally creates a csv file
252+
* `get_details_by_location`(fsids `list`, location_type `string`, csv `bool`, [core_limit `int=100`]) - Returns an array of `Adaptation Project` product for the given IDs, location_type, and optionally creates a csv file
251253
* `get_summary`(fsids `list`, location_type `string`, csv `bool`, [core_limit `int=100`]) - Returns an array of `Adaptation Summary` product for the given IDs, location_type, and optionally creates a csv file
252254

253255
<a name="fema"></a>

firststreet/api/adaptation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ def get_details_by_location(self, fsids, location_type, csv=False, limit=100, ou
6363
raise InvalidArgument(location_type)
6464
elif not isinstance(location_type, str):
6565
raise TypeError("location is not a string")
66-
elif location_type == 'property':
67-
raise InvalidArgument("Property is not a valid location type")
6866

6967
# Get data from api and create objects
7068
api_datas_summary = self.call_api(fsids, "adaptation", "summary", location_type, limit=limit)

firststreet/api/historic.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ def get_events_by_location(self, fsids, location_type, csv=False, limit=100, out
6464
raise InvalidArgument(location_type)
6565
elif not isinstance(location_type, str):
6666
raise TypeError("location is not a string")
67-
elif location_type == 'property':
68-
raise InvalidArgument("Property is not a valid location type")
6967

7068
# Get data from api and create objects
7169
api_datas = self.call_api(fsids, "historic", "summary", location_type, limit)

0 commit comments

Comments
 (0)