Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Jan 19, 2024
1 parent 5a9be1c commit 43e05e6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from azure.core.messaging import CloudEvent
from azure.eventgrid import EventGridEvent, SystemEventNames
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
from contextlib import asynccontextmanager
from datetime import datetime
from enum import Enum
from fastapi import FastAPI, status, Request, HTTPException, BackgroundTasks
Expand Down Expand Up @@ -91,12 +90,6 @@ class Context(str, Enum):
GOODBYE = "goodbye"


@asynccontextmanager
async def lifespan(_: FastAPI):
await init_db()
yield


api = FastAPI(
contact={
"url": "https://github.com/clemlesne/claim-ai-phone-bot",
Expand All @@ -106,7 +99,6 @@ async def lifespan(_: FastAPI):
"name": "Apache-2.0",
"url": "https://github.com/clemlesne/claim-ai-phone-bot/blob/master/LICENCE",
},
lifespan=lifespan,
root_path=ROOT_PATH,
title="claim-ai-phone-bot",
version=CONFIG.api.version,
Expand Down

0 comments on commit 43e05e6

Please sign in to comment.