revision logic revisited
This commit is contained in:
@@ -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 []
|
||||
|
||||
Reference in New Issue
Block a user