feat: add get_all_export_paths to ProcessedDB

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-17 08:55:39 +02:00
parent 4cf54f2642
commit fd42791c9f
2 changed files with 25 additions and 0 deletions
+10
View File
@@ -213,6 +213,16 @@ class ProcessedDB:
).fetchall()
return [r[0] for r in rows]
def get_all_export_paths(self, profile: str = "default") -> list[str]:
"""Return all unique output_path values for a given profile."""
if not self._enabled:
return []
rows = self._con.execute(
"SELECT DISTINCT output_path FROM processed WHERE profile = ?",
(profile,),
).fetchall()
return [r[0] for r in rows]
def hide_file(self, filename: str, profile: str = "default") -> None:
if not self._enabled:
return