Update the score of an existing mapping.
(self, src: str, dst: str, score: int)
| 448 | return row["score"] if row else None |
| 449 | |
| 450 | def update_mapping_score(self, src: str, dst: str, score: int) -> None: |
| 451 | """Update the score of an existing mapping.""" |
| 452 | self._conn.execute( |
| 453 | "UPDATE mappings SET score = ? WHERE src = ? AND dst = ?", |
| 454 | (score, src, dst), |
| 455 | ) |
| 456 | self._conn.commit() |
| 457 | |
| 458 | def _upsert_raw_manpage(self, source: str, raw: RawManpage) -> None: |
| 459 | """Insert or replace a RawManpage into the manpages table.""" |
no outgoing calls