Skip to content

Commit a99fe7e

Browse files
authored
updated v2 to take into account that DATA_SOURCES no longer exists
1 parent ea4c6db commit a99fe7e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

app/routers/v2.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from fastapi import APIRouter, HTTPException, Request
55

6-
from ..data import DATA_SOURCES
6+
#from ..data import DATA_SOURCES
77
from ..models import LatestResponse, LocationResponse, LocationsResponse
88

99
V2 = APIRouter()
@@ -104,7 +104,5 @@ async def get_location_by_id(
104104

105105
@V2.get("/sources")
106106
async def sources():
107-
"""
108-
Retrieves a list of data-sources that are availble to use.
109-
"""
110-
return {"sources": list(DATA_SOURCES.keys())}
107+
DATA_SOURCES = ["jhu", "csbs", "nyt"]
108+
return {"sources": DATA_SOURCES}

0 commit comments

Comments
 (0)