Skip to content

Commit

Permalink
Bump ruff from 0.4.10 to 0.5.5 (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
153957 committed Jul 30, 2024
2 parents 8e177bb + 1c19d41 commit e229d62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions publicdb/status_display/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,23 +182,23 @@ 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)

location = station.latest_location()
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,
Expand Down
4 changes: 3 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# lint & format
ruff==0.4.10
ruff==0.5.5

# spelling
typos==1.23.5

# unittests
Expand Down

0 comments on commit e229d62

Please sign in to comment.