Skip to content

Commit 0841ce1

Browse files
committed
fix(stuff): copilot bad boy
1 parent 29b1a70 commit 0841ce1

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

analyzer.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from pathlib import Path
1212
from typing import Optional, Dict, Any, List
1313

14-
from db import create_analysis, store_file, update_analysis_status, update_analysis_counts
14+
from db import create_analysis, store_file, update_analysis_status
1515
from external_api import get_embedding_for_text, call_coding_api
1616
from llama_index.core import Document
1717
import logging
@@ -422,17 +422,6 @@ async def analyze_local_path(
422422
if r.get("embedded"):
423423
emb_count += 1
424424

425-
# Persist progress to DB so the frontend can poll it
426-
try:
427-
await _run_in_executor(update_analysis_counts, database_path, aid, file_count, emb_count)
428-
except Exception:
429-
try:
430-
# Previously this error was recorded to DB; now write to disk
431-
err_content = f"Failed to update progress at chunk_start={chunk_start}"
432-
print(err_content)
433-
except Exception:
434-
logger.exception("Failed to write progress-update error to disk for analysis %s", aid)
435-
436425
# detect uv usage and deps (run in executor because it may use subprocess / file IO)
437426
uv_info = await _run_in_executor(lambda p, v: (None if p is None else p), local_path, venv_path)
438427
try:

0 commit comments

Comments
 (0)