Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update nyt.py
get the base url for nyt from baseUrlClass
  • Loading branch information
Billa32 authored Jul 26, 2021
commit 10a1ea59d469b8ba7c4d12a9b9557e649bf29516
4 changes: 2 additions & 2 deletions app/services/location/nyt.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from ...models import Timeline
from ...utils import httputils
from . import LocationService

from ...utils.baseurls import BaseUrl
LOGGER = logging.getLogger("services.location.nyt")


Expand All @@ -36,7 +36,7 @@ async def get(self, loc_id): # pylint: disable=arguments-differ


# Base URL for fetching category.
BASE_URL = "https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-counties.csv"
BASE_URL = BaseUrl.NYT


def get_grouped_locations_dict(data):
Expand Down