feat: add NAS management UI and operation history
This commit is contained in:
@@ -99,6 +99,7 @@ def exact_dedupe(db_path: Path, root: Path, dry_run: bool = False) -> list[tuple
|
||||
if lp.stat().st_ino != wp.stat().st_ino:
|
||||
if not dry_run:
|
||||
hardlink_duplicate(lp, wp)
|
||||
conn.execute("INSERT INTO operations(action,file_path,winner_path,details) VALUES(?,?,?,?)", ('exact-hardlink',str(lp),str(wp),'sha256 exact duplicate'))
|
||||
conn.execute(
|
||||
"UPDATE audio_tracks SET status='hardlinked',updated_at=CURRENT_TIMESTAMP WHERE id=?",
|
||||
(row["id"],),
|
||||
|
||||
Reference in New Issue
Block a user