Skip to content

Commit 89c6a1b

Browse files
authored
Update csbs.py
file related to baseurl
1 parent 6bc1467 commit 89c6a1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/services/location/csbs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from ...location.csbs import CSBSLocation
1212
from ...utils import httputils
1313
from . import LocationService
14+
from ...utils.baseurls import BaseUrl
1415

1516
LOGGER = logging.getLogger("services.location.csbs")
1617

@@ -32,7 +33,7 @@ async def get(self, loc_id): # pylint: disable=arguments-differ
3233

3334

3435
# Base URL for fetching data
35-
BASE_URL = "https://facts.csbs.org/covid-19/covid19_county.csv"
36+
BASE_URL = BaseUrl.CSBS
3637

3738

3839
@cached(cache=TTLCache(maxsize=1, ttl=1800))
@@ -100,3 +101,4 @@ async def get_locations():
100101

101102
# Return the locations.
102103
return locations
104+

0 commit comments

Comments
 (0)