Skip to content

Commit 93b1733

Browse files
pylint issues resolved
1 parent 899a11f commit 93b1733

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/backend/api/api_routes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import asyncio
44
import io
5-
from typing import Optional
65
# Standard library
76
import logging
87
import os
98
import zipfile
9+
from typing import Optional
1010

1111
# Third-party
1212
from azure.monitor.opentelemetry import configure_azure_monitor
@@ -469,7 +469,6 @@ async def get_batch_summary(request: Request, batch_id: str):
469469
if not batch_summary:
470470
track_event_if_configured("BatchSummaryNotFound", {"batch_id": batch_id, "user_id": user_id})
471471
raise HTTPException(status_code=404, detail="No batch summary found.")
472-
473472
track_event_if_configured("BatchSummaryRetrieved", {"batch_id": batch_id, "user_id": user_id})
474473
return batch_summary
475474

src/backend/api/event_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
load_dotenv()
77

8+
89
def track_event_if_configured(event_name: str, event_data: dict):
910
instrumentation_key = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
1011
if instrumentation_key:

0 commit comments

Comments
 (0)