fix: extract hardcoded values to config, clean up bare pass (#776, #778, #782) #793

Merged
Timmy merged 2 commits from perplexity/Timmy-time-dashboard:fix/code-quality-778-776-782 into main 2026-03-22 01:46:16 +00:00

2 Commits

Author SHA1 Message Date
77573b6c79 Merge branch 'main' into fix/code-quality-778-776-782
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
2026-03-22 01:46:04 +00:00
ee84cc2b09 fix: extract hardcoded values to config, clean up bare pass statements
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
Fixes #776 — Extract hardcoded PRAGMA busy_timeout=5000 to config
  - Add db_busy_timeout_ms setting (default 5000) to Settings
  - Replace hardcoded values in memory_system.py (2 locations)
  - Replace hardcoded value in memory/unified.py (1 location)

Fixes #778 — Remove bare pass after logged exceptions in tools.py
  - Remove redundant pass after logger.warning in consult_grok()
  - Remove redundant pass after logger.warning in Lightning invoice block
  - Replace bare pass in _merge_catalog with logger.debug

Fixes #782 — Extract hardcoded sats limit in consult_grok()
  - Add grok_sats_hard_cap setting (default 100) to Settings
  - Replace magic number 100 with settings.grok_sats_hard_cap
  - Add _INVOICE_MEMO_MAX_LEN constant for query truncation
2026-03-21 21:45:40 +00:00