Skip to content

Commit bf03eed

Browse files
committed
upgrade to python 3.13 work
1 parent e2c2567 commit bf03eed

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

docker/DockerfileFastapi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM python:3.13.9-slim
33
WORKDIR /app
44

55
RUN apt-get update && \
6-
apt-get install -y --no-install-recommends git && \
6+
apt-get install -y --no-install-recommends git gcc build-essential && \
77
rm -rf /var/lib/apt/lists/*
88

99
COPY requirements.txt ./

fastapi-postgres/app/service/create_data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ async def reset_postgres_schema():
4747
conf.POSTGRES_DATABASE_URL,
4848
echo=False,
4949
pool_pre_ping=True,
50-
connect_args={"statement_cache_size": 0},
5150
)
5251
async with engine.begin() as conn:
5352
await conn.run_sync(SQLModel.metadata.drop_all)

fastapi-postgres/common/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
DATABASE_URL = DATABASE_URL_LOCAL if IS_LOCAL else DATABASE_URL_PROD
1919

2020
if IS_LOCAL:
21-
DATABASE_URL = DATABASE_URL
2221
# DATABASE_URL = DATABASE_URL_PROD
22+
print(DATABASE_URL)
2323

2424

2525
class Settings(BaseSettings):

0 commit comments

Comments
 (0)