Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,10 @@ backend/resources/models/mlx/
temp/
tmp/

# Batch processing state
backend/data/batch_state.json
# Runtime data & user-specific config
backend/data/
backend/config/user_settings.json
backend/config/names.json

# Claude Code
.claude/
10 changes: 5 additions & 5 deletions backend/api/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def _ingest_markdown_note(pipeline_file, original_path: Path, file_size: int):
note_title = note_result["title"]
attachments = note_result["attachments"]
except Exception as e:
print(f"Warning: Markdown note parse failed for {original_path.name}: {e}")
logger.warning(f"Markdown note parse failed for {original_path.name}: {e}")
note_text = original_path.read_text(encoding="utf-8", errors="replace")
note_title = original_path.stem.rstrip(".")
attachments = []
Expand Down Expand Up @@ -81,8 +81,8 @@ def _ingest_markdown_note(pipeline_file, original_path: Path, file_size: int):
if old_md.resolve() != original_path.resolve():
try:
old_md.unlink()
except Exception:
pass
except Exception as e:
logger.warning(f"Could not remove stale .md {old_md.name}: {e}")

# Generate compiled.md with YAML frontmatter
import datetime as _dt
Expand Down Expand Up @@ -117,7 +117,7 @@ def _ingest_markdown_note(pipeline_file, original_path: Path, file_size: int):
try:
(folder / "compiled.md").write_text(compiled_content, encoding="utf-8")
except Exception as e:
print(f"Warning: Could not write compiled.md for note {original_path.name}: {e}")
logger.warning(f"Could not write compiled.md for note {original_path.name}: {e}")

# Store compiled content and extracted tags in status.json
try:
Expand Down Expand Up @@ -272,7 +272,7 @@ async def upload_files(
audio_metadata["duration"] = f"{hours:02d}:{minutes:02d}:{seconds:02d}"
audio_metadata["duration_seconds"] = duration_seconds
except Exception as e:
print(f"Warning: Could not extract duration for {upload_file.filename}: {e}")
logger.warning(f"Could not extract duration for {upload_file.filename}: {e}")

status_tracker.add_audio_metadata(pipeline_file.id, audio_metadata)

Expand Down
6 changes: 3 additions & 3 deletions backend/api/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ async def get_system_resources():
if output_folder.exists():
disk_stat = psutil.disk_usage(str(output_folder))
disk_usage = (disk_stat.used / disk_stat.total) * 100
except:
except (OSError, AttributeError, ImportError):
pass

# CPU temperature (Mac-specific, optional)
core_temp = None
try:
Expand All @@ -51,7 +51,7 @@ async def get_system_resources():
if entries:
core_temp = entries[0].current
break
except:
except (OSError, AttributeError):
pass

return SystemResources(
Expand Down
57 changes: 0 additions & 57 deletions backend/config/names.json

This file was deleted.

126 changes: 0 additions & 126 deletions backend/config/user_settings.json

This file was deleted.

27 changes: 0 additions & 27 deletions backend/data/batch_state.json

This file was deleted.

Loading