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

Function safe_str

webapp_modern.py:3822–3827  ·  view source on GitHub ↗

Safely convert value to string

(value, default="")

Source from the content-addressed store, hash-verified

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:
3824 installing = _sensing_installing
3825 return jsonify({
3826 'success': True, 'installed': installed, 'active': active,
3827 'installing': installing, 'arch': arch, 'has_prebuilt': has_prebuilt,
3828 })
3829
3830

Callers 11

sync_vulnerability_countFunction · 0.85
get_statusFunction · 0.85
get_activity_logsFunction · 0.85
get_epaper_displayFunction · 0.85
handle_activity_requestFunction · 0.85
get_current_statusFunction · 0.85
get_recent_logsFunction · 0.85
broadcast_status_updatesFunction · 0.85
get_dashboard_quickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected