Skip to content

Commit

Permalink
remove imports of unused modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jmargutt committed Oct 18, 2024
1 parent 20d0b66 commit ba6573f
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
# pylint: disable=invalid-name
import uvicorn
from fastapi import (
Security,
Depends,
FastAPI,
APIRouter,
Request,
HTTPException,
Header,
)
from fastapi import FastAPI
from fastapi.responses import RedirectResponse, JSONResponse
from fastapi.security.api_key import APIKeyHeader, APIKey
from pydantic import BaseModel
import requests
import pandas as pd
from datetime import datetime, timedelta
import os
from enum import Enum
from dotenv import load_dotenv
from utils.logger import logger
from routes import routes121, routesEspo, routesGeneric, routesKobo


# load environment variables
load_dotenv()
port = os.environ["PORT"]
Expand All @@ -33,7 +18,7 @@
"Built with love by [NLRC 510](https://www.510.global/). "
"See [the project on GitHub](https://github.com/rodekruis/kobo-connect) "
"or [contact us](mailto:[email protected]).",
version="0.0.2",
version="0.0.3",
license_info={
"name": "AGPL-3.0 license",
"url": "https://www.gnu.org/licenses/agpl-3.0.en.html",
Expand All @@ -46,12 +31,14 @@ async def docs_redirect():
"""Redirect base URL to docs."""
return RedirectResponse(url="/docs")


# Include routes
app.include_router(routes121.router)
app.include_router(routesEspo.router)
app.include_router(routesGeneric.router)
app.include_router(routesKobo.router)


@app.get("/health")
async def health():
"""Get health of instance."""
Expand Down

0 comments on commit ba6573f

Please sign in to comment.