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

Function safe_int

webapp_modern.py:3813–3820  ·  view source on GitHub ↗

Safely convert value to int, handling numpy types

(value, default=0)

Source from the content-addressed store, hash-verified

3811 finally:
3812 with _sensing_install_lock:
3813 _sensing_installing = False
3814
3815
3816@app.route('/api/sensing/status', methods=['GET'])
3817def sensing_status():
3818 """Report whether the bundled sensing backend is installed and running."""
3819 installed, active = _sensing_unit_state()
3820 arch = os.uname().machine
3821 has_prebuilt = (arch == 'aarch64' and
3822 os.path.exists(os.path.join(shared_data.currentdir, 'bin', 'sensing-server')))
3823 with _sensing_install_lock:

Callers 12

sync_vulnerability_countFunction · 0.85
get_statusFunction · 0.85
get_verbose_debug_logsFunction · 0.85
get_statsFunction · 0.85
get_current_statusFunction · 0.85
get_recent_logsFunction · 0.85
get_dashboard_quickFunction · 0.85
get_netkb_dataFunction · 0.85
get_ai_network_summaryFunction · 0.85
get_ai_weakness_analysisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected