revision logic revisited

This commit is contained in:
Danilo Reyes
2026-02-28 23:33:06 -06:00
parent 766eca4a2f
commit 9da87b68e9
3 changed files with 28 additions and 2 deletions

View File

@@ -205,6 +205,19 @@ def cmd_validate_import(_: argparse.Namespace) -> None:
print(" OK")
def cmd_fix_revision(_: argparse.Namespace) -> None:
with db.connect() as conn:
conn.execute(
"""
UPDATE links
SET requires_revision = 0
WHERE enabled = 1 OR banned_at IS NULL
"""
)
conn.commit()
print("ok")
def _fzf_select(lines: list[str], multi: bool) -> list[str]:
if not lines:
return []