comit
Browse files- api/routes.py +2 -2
- app.py +2 -2
- services/population.py +2 -2
api/routes.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
from fastapi import APIRouter
|
| 2 |
-
from
|
| 3 |
-
from
|
| 4 |
|
| 5 |
router = APIRouter()
|
| 6 |
|
|
|
|
| 1 |
from fastapi import APIRouter
|
| 2 |
+
from services.population import get_continent_population
|
| 3 |
+
from models.schemas import ContinentPopulationResponse
|
| 4 |
|
| 5 |
router = APIRouter()
|
| 6 |
|
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
-
from
|
| 3 |
-
from
|
| 4 |
|
| 5 |
|
| 6 |
app = FastAPI()
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
+
from api.routes import router
|
| 3 |
+
from utils.logger import logger
|
| 4 |
|
| 5 |
|
| 6 |
app = FastAPI()
|
services/population.py
CHANGED
|
@@ -7,9 +7,9 @@ sys.path.append(src_directory)
|
|
| 7 |
|
| 8 |
|
| 9 |
import pandas as pd
|
| 10 |
-
from
|
| 11 |
from fastapi import HTTPException
|
| 12 |
-
from
|
| 13 |
|
| 14 |
file_path = "D:/backapp/world_population.csv"
|
| 15 |
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
import pandas as pd
|
| 10 |
+
from utils.logger import logger
|
| 11 |
from fastapi import HTTPException
|
| 12 |
+
from models.schemas import ContinentPopulationResponse, CountryPopulation
|
| 13 |
|
| 14 |
file_path = "D:/backapp/world_population.csv"
|
| 15 |
|