diff --git a/publicdb/status_display/views.py b/publicdb/status_display/views.py index 779919aa..b1536c05 100644 --- a/publicdb/status_display/views.py +++ b/publicdb/status_display/views.py @@ -182,9 +182,9 @@ def stations_on_map(request, country=None, cluster=None, subcluster=None): statuscount = station_status.get_status_counts() subclusters = [] - for subcluster in Cluster.objects.all(): + for subcluster_object in Cluster.objects.all(): stations = [] - for station in subcluster.stations.filter(pcs__is_test=False).distinct(): + for station in subcluster_object.stations.filter(pcs__is_test=False).distinct(): link = station in data_stations status = station_status.get_status(station.number) @@ -192,13 +192,13 @@ def stations_on_map(request, country=None, cluster=None, subcluster=None): station_data = { 'number': station.number, 'name': station.name, - 'cluster': subcluster, + 'cluster': subcluster_object, 'link': link, 'status': status, } station_data.update(location) stations.append(station_data) - subclusters.append({'name': subcluster.name, 'stations': stations}) + subclusters.append({'name': subcluster_object.name, 'stations': stations}) return render( request, diff --git a/requirements-dev.txt b/requirements-dev.txt index e8cc58d7..cd3f0f85 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,7 @@ # lint & format -ruff==0.4.10 +ruff==0.5.5 + +# spelling typos==1.23.5 # unittests