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

Function remove_pushover_keys

webapp_modern.py:19420–19432  ·  view source on GitHub ↗

Remove Pushover keys from .env file.

()

Source from the content-addressed store, hash-verified

19418 """Get top hosts by traffic"""
19419 try:
19420 analyzer = get_traffic_analyzer()
19421 if not analyzer:
19422 return jsonify({'success': False, 'error': 'Traffic analysis not available'}), 503
19423
19424 limit = request.args.get('limit', 20, type=int)
19425 sort_by = request.args.get('sort', 'bytes')
19426
19427 return jsonify({
19428 'success': True,
19429 'hosts': analyzer.get_top_hosts(limit=limit, sort_by=sort_by)
19430 })
19431 except Exception as e:
19432 logger.error(f"Error getting traffic hosts: {e}")
19433 return jsonify({'success': False, 'error': str(e)}), 500
19434
19435

Callers

nothing calls this directly

Calls 4

delete_env_keyMethod · 0.95
EnvManagerClass · 0.90
save_configMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected