diff --git a/deadlock_analytics_api/routers/internal.py b/deadlock_analytics_api/routers/internal.py index fdf3cbb..a6f51ba 100644 --- a/deadlock_analytics_api/routers/internal.py +++ b/deadlock_analytics_api/routers/internal.py @@ -1,7 +1,6 @@ from fastapi import APIRouter, Depends from fastapi.openapi.models import APIKey from pydantic import BaseModel, Field -from starlette.exceptions import HTTPException from starlette.responses import JSONResponse, Response from deadlock_analytics_api import utils @@ -48,32 +47,6 @@ class MatchSalts(BaseModel): failed: bool | None = Field(None) -@router.get("/match-salts") -def get_match_salts( - response: Response, api_key: APIKey = Depends(utils.get_internal_api_key) -) -> list[MatchSalts]: - response.headers["Cache-Control"] = "private, max-age=1200" - print(f"Authenticated with API key: {api_key}") - query = """ - SELECT match_id, cluster_id, metadata_salt, replay_salt, failed - FROM match_salts - """ - with CH_POOL.get_client() as client: - results = client.execute(query) - if len(results) == 0: - raise HTTPException(status_code=404, detail="Match not found") - return [ - MatchSalts( - match_id=row[0], - cluster_id=row[1], - metadata_salt=row[2], - replay_salt=row[3], - failed=row[4], - ) - for row in results - ] - - @router.post("/match-salts") def post_match_salts( response: Response, diff --git a/poetry.lock b/poetry.lock index 8c132cf..2ee2e09 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.0 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand. [[package]] name = "annotated-types" @@ -1010,4 +1010,4 @@ standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", [metadata] lock-version = "2.0" python-versions = "^3.12" -content-hash = "e7328d93ecf2adcaab8daebbd642e6c34fb80677a71443dc38e71ddd43566ac3" +content-hash = "e922bcd267252b11ce158fb0b34e34ae1a888878d70cd929b9806848a1da0526" diff --git a/pyproject.toml b/pyproject.toml index 94f0589..dc4fae8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ psycopg2-binary = "^2.9.10" uuid = "^1.30" cachetools = "^5.5.0" pika = "^1.3.2" -sentry-sdk = {version = "^2.17.0", extras = ["fastapi"]} +sentry-sdk = {version = "^2.18.0", extras = ["fastapi"]} boto3 = "^1.35.54" [tool.poetry.group.dev.dependencies] diff --git a/requirements.txt b/requirements.txt index 2333ab1..d9bde8d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ annotated-types==0.7.0 ; python_version >= "3.12" and python_version < "4.0" anyio==4.6.2.post1 ; python_version >= "3.12" and python_version < "4.0" -boto3==1.35.52 ; python_version >= "3.12" and python_version < "4.0" -botocore==1.35.52 ; python_version >= "3.12" and python_version < "4.0" +boto3==1.35.54 ; python_version >= "3.12" and python_version < "4.0" +botocore==1.35.54 ; python_version >= "3.12" and python_version < "4.0" cachetools==5.5.0 ; python_version >= "3.12" and python_version < "4.0" certifi==2024.8.30 ; python_version >= "3.12" and python_version < "4.0" click==8.1.7 ; python_version >= "3.12" and python_version < "4.0" @@ -23,7 +23,7 @@ python-dateutil==2.9.0.post0 ; python_version >= "3.12" and python_version < "4. pytz==2024.2 ; python_version >= "3.12" and python_version < "4" redis[hiredis]==5.2.0 ; python_version >= "3.12" and python_version < "4.0" s3transfer==0.10.3 ; python_version >= "3.12" and python_version < "4.0" -sentry-sdk[fastapi]==2.17.0 ; python_version >= "3.12" and python_version < "4.0" +sentry-sdk[fastapi]==2.18.0 ; python_version >= "3.12" and python_version < "4.0" six==1.16.0 ; python_version >= "3.12" and python_version < "4.0" sniffio==1.3.1 ; python_version >= "3.12" and python_version < "4.0" starlette==0.41.2 ; python_version >= "3.12" and python_version < "4.0"