MCPcopy Create free account
hub / github.com/HKUDS/OpenSpace / _deactivate_record_sync

Method _deactivate_record_sync

openspace/skill_engine/store.py:640–649  ·  view source on GitHub ↗
(self, skill_id: str)

Source from the content-addressed store, hash-verified

638
639 @_db_retry()
640 def _deactivate_record_sync(self, skill_id: str) -> bool:
641 self._ensure_open()
642 with self._mu:
643 cur = self._conn.execute(
644 "UPDATE skill_records SET is_active=0, last_updated=? "
645 "WHERE skill_id=?",
646 (datetime.now().isoformat(), skill_id),
647 )
648 self._conn.commit()
649 return cur.rowcount > 0
650
651 @_db_retry()
652 def _reactivate_record_sync(self, skill_id: str) -> bool:

Callers

nothing calls this directly

Calls 2

_ensure_openMethod · 0.95
executeMethod · 0.45

Tested by

no test coverage detected