MCPcopy Create free account
hub / github.com/idank/explainshell / update_mapping_score

Method update_mapping_score

explainshell/store.py:450–456  ·  view source on GitHub ↗

Update the score of an existing mapping.

(self, src: str, dst: str, score: int)

Source from the content-addressed store, hash-verified

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."""

Callers 2

_add_alias_mappingFunction · 0.80

Calls

no outgoing calls

Tested by 1