mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-13 05:58:35 +03:00
removing load_env
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
import os
|
import os
|
||||||
from dotenv import load_dotenv
|
|
||||||
|
|
||||||
load_dotenv()
|
|
||||||
|
|
||||||
VERSION = "0.7.0"
|
VERSION = "0.7.0"
|
||||||
API_DESCRIPTION = """
|
API_DESCRIPTION = """
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ from fastapi.encoders import jsonable_encoder
|
|||||||
from fastapi.responses import JSONResponse
|
from fastapi.responses import JSONResponse
|
||||||
from fastapi.staticfiles import StaticFiles
|
from fastapi.staticfiles import StaticFiles
|
||||||
from fastapi.middleware.cors import CORSMiddleware
|
from fastapi.middleware.cors import CORSMiddleware
|
||||||
from dotenv import load_dotenv
|
|
||||||
from prometheus_fastapi_instrumentator import Instrumentator
|
from prometheus_fastapi_instrumentator import Instrumentator
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import sqlalchemy
|
import sqlalchemy
|
||||||
@@ -25,8 +24,6 @@ from auto_archiver import Metadata
|
|||||||
|
|
||||||
from endpoints import default_router, url_router, sheet_router, task_router, interoperability_router
|
from endpoints import default_router, url_router, sheet_router, task_router, interoperability_router
|
||||||
|
|
||||||
load_dotenv()
|
|
||||||
|
|
||||||
|
|
||||||
app = FastAPI(
|
app = FastAPI(
|
||||||
title="Auto-Archiver API",
|
title="Auto-Archiver API",
|
||||||
|
|||||||
@@ -4,9 +4,6 @@ from sqlalchemy import engine_from_config
|
|||||||
from sqlalchemy import pool
|
from sqlalchemy import pool
|
||||||
|
|
||||||
from alembic import context
|
from alembic import context
|
||||||
from dotenv import load_dotenv
|
|
||||||
|
|
||||||
load_dotenv()
|
|
||||||
|
|
||||||
# this is the Alembic Config object, which provides
|
# this is the Alembic Config object, which provides
|
||||||
# access to the values within the .ini file in use.
|
# access to the values within the .ini file in use.
|
||||||
|
|||||||
Reference in New Issue
Block a user