Skip to content

Commit 8bdc60c

Browse files
committed
formatting error fix
1 parent ad4ed10 commit 8bdc60c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gs/backend/api/lifespan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from fastapi import FastAPI
55
from fastapi_cache import FastAPICache
66
from fastapi_cache.backends.inmemory import InMemoryBackend
7-
# from fastapi_cache.backends.redis import RedisBackend # Uncomment for Redis
87

98
from gs.backend.data.database.engine import get_db_session, setup_database
109
from gs.backend.data.resources.utils import add_main_commands
@@ -15,7 +14,7 @@ async def lifespan(_: FastAPI) -> AsyncGenerator[None, None]:
1514
"""Lifecycle event for the FastAPI app."""
1615
# Initialize FastAPI Cache (in memory cache)
1716
FastAPICache.init(InMemoryBackend())
18-
17+
1918
# Must all the get_db_session each time when pass it into a separate function.
2019
# Otherwise, will get transaction is inactive error
2120
setup_database(get_db_session())

0 commit comments

Comments
 (0)