add clone
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m50s

This commit is contained in:
Nicholas Orlowsky 2026-04-19 23:04:53 -04:00
parent 8a17159524
commit bb1ac27ea6
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B
2 changed files with 26 additions and 24 deletions

View file

@ -554,7 +554,7 @@ impl GtfsPullService {
.routes .routes
.get(&make_global_id!(prefix, trip.1.route_id)) .get(&make_global_id!(prefix, trip.1.route_id))
.clone() { .clone() {
Some(x) => x, Some(x) => x.clone(),
None => { None => {
warn!("No route found for trip {} (was looking for route {})", trip.1.id, trip.1.route_id); warn!("No route found for trip {} (was looking for route {})", trip.1.id, trip.1.route_id);
continue continue

View file

@ -1,9 +1,9 @@
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/> crossorigin="">
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script> crossorigin="">
<style> <style>
#map { height: 750px; width: 100%; } #map { height: 750px; width: 100%; }
@ -23,14 +23,16 @@ L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
{% for loc in locations %} {% for loc in locations %}
{ {
var icon = L.divIcon({ var icon = L.divIcon({
html: '<span style="background-color: #eee; padding: 2px;">{{ loc.2 }}</span>', // Your text here html: `
className: 'text-label', // Custom CSS class <div>
//iconSize: [100, 40], // Optional: Define size <span style="background-color: #eee; padding: 2px;">
//iconAnchor: [50, 20] // Optional: Center the text over the point {{ loc.2 }}
</span>
</div>`,
className: 'text-label'
}); });
var marker = L.marker([{{loc.0}}, {{loc.1}}], {icon: icon}).addTo(map); var marker = L.marker([{{loc.0}}, {{loc.1}}], {icon: icon}).addTo(map);
marker.bindPopup("{{ loc.2 }}") marker.bindPopup("{{ loc.2 }}")
} }
{% endfor %} {% endfor %}
</script> </script>