MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _touch_ts

Function _touch_ts

webapp_modern.py:2141–2149  ·  view source on GitHub ↗
(net: dict, fpath: str)

Source from the content-addressed store, hash-verified

2139 _ni_alert_memory[k] = {
2140 'rank': int(v.get('rank', 1)),
2141 'ts': float(v.get('ts', 0) or 0),
2142 'clean_since': (float(v['clean_since'])
2143 if v.get('clean_since') else None),
2144 }
2145 except FileNotFoundError:
2146 pass
2147 except Exception as exc:
2148 logger.debug(f"[net-integrity] alert-memory load failed: {exc}")
2149
2150
2151def _ni_save_memory():
2152 try:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected