From 3b03dc84045533685101248ba928739a3b7189cf Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 13 Jan 2026 19:39:35 -0300 Subject: [PATCH] fix: update variable name for wireguard status data in cache creation --- api/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/views.py b/api/views.py index 25e4e7e..4273183 100644 --- a/api/views.py +++ b/api/views.py @@ -399,10 +399,10 @@ def cron_refresh_wireguard_status_cache(request): if not settings.WIREGUARD_STATUS_CACHE_ENABLED: return JsonResponse(data) start_time = time.monotonic() - data = func_process_wireguard_status() + wireguard_status_data = func_process_wireguard_status() end_time = time.monotonic() processing_time_ms = int((end_time - start_time) * 1000) - WireguardStatusCache.objects.create(data=data, processing_time_ms=processing_time_ms, cache_type='master') + WireguardStatusCache.objects.create(data=wireguard_status_data, processing_time_ms=processing_time_ms, cache_type='master') if ClusterSettings.objects.filter(name='cluster_settings', enabled=True).exists(): func_concatenate_cluster_wireguard_status_cache() return JsonResponse(data)