Skip to content

Commit 923ac4c

Browse files
authored
added note to keep geo_types in sync
1 parent 4136db4 commit 923ac4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/server/_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def __init__(self, geo_type: str, geo_values: Union[bool, Sequence[str]]):
5858
if not isinstance(geo_values, bool):
5959
if geo_values == ['']:
6060
raise ValidationFailedException(f"geo_value is empty for the requested geo_type {geo_type}!")
61+
# TODO: keep this translator in sync with CsvImporter.GEOGRAPHIC_RESOLUTIONS in acquisition/covidcast/ and with GeoMapper
6162
geo_type_translator = {
6263
"county": "fips",
6364
"state": "state_id",

0 commit comments

Comments
 (0)