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

Function wardriving_track

webapp_modern.py:8403–8417  ·  view source on GitHub ↗

Get GPS track for current session (for map display).

()

Source from the content-addressed store, hash-verified

8401 Shared by the Settings save (POST /api/config) and fleet Import
8402 (POST /api/config/import) so both paths trigger the same kiosk / AI /
8403 display-restart handling. Returns ``(payload_dict, status_code)``; the
8404 callers wrap the payload in jsonify."""
8405 if True:
8406 ai_reload_success = None
8407 ai_reload_error = None
8408 epd_type_changed = 'epd_type' in data
8409
8410 # Capture pre-update kiosk state so we can detect toggles after save.
8411 prev_kiosk_enabled = bool(shared_data.config.get('kiosk_enabled', False))
8412 # Refuse to even record kiosk_enabled on hardware that cannot host
8413 # Chromium — persisting it would leave a box permanently trying (and
8414 # failing) to install a kiosk on every boot.
8415 if data.get('kiosk_enabled'):
8416 kiosk_ok, kiosk_reason = _kiosk_capability()
8417 if not kiosk_ok:
8418 logger.warning(f"[kiosk] enable rejected: {kiosk_reason}")
8419 return {'success': False, 'error': kiosk_reason}, 400
8420 kiosk_settings_keys = {'kiosk_url', 'kiosk_rotation', 'kiosk_hide_cursor',

Callers

nothing calls this directly

Calls 4

get_gps_trackMethod · 0.95
WardrivingSessionClass · 0.90
_get_wardriving_engineFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected