summary refs log tree commit diff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/photo.causal.agency/trips.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/www/photo.causal.agency/trips.html b/www/photo.causal.agency/trips.html
index de34dc6c..21c308da 100644
--- a/www/photo.causal.agency/trips.html
+++ b/www/photo.causal.agency/trips.html
@@ -195,15 +195,16 @@ function setTrips() {
 	localStorage.setItem("trips", JSON.stringify(trips));
 	let ul = document.querySelector("#trips > ul");
 	ul.innerHTML = "";
+	let tripsByRoll = Object.groupBy(trips, trip => trip.rollId);
 	for (let rollId = nextId - 1; rollId > 0; --rollId) {
-		let rollTrips = trips.filter(trip => trip.rollId == rollId);
-		if (rollTrips.length == 0) continue;
+		let rollTrips = tripsByRoll[rollId];
+		if (!rollTrips) continue;
 		let rollLi = document.createElement("li");
 		rollLi.appendChild(document.createTextNode(`
 			${rollTrips[0].film} (${rollTrips[0].body})
 		`));
 		let rollUl = document.createElement("ul");
-		for (trip of rollTrips) {
+		for (let trip of rollTrips) {
 			let li = document.createElement("li");
 			li.appendChild(document.createTextNode(`
 				${trip.date}:
n title='2021-08-22 12:58:03 -0400'>2021-08-22Add ISC license headerJune McEnroe 2021-08-22Update to Linux man-pages 5.12Štěpán Němec 2021-06-21Add manuals for macOS 11.3June McEnroe 2021-05-08Update to OpenBSD 6.9June McEnroe 2021-04-26Update to Linux man-pages 5.11June McEnroe 2021-04-26Update to FreeBSD 13.0June McEnroe 2021-01-27Completely rewrite how manuals are fetched and installedJune McEnroe 2020-12-14Update to man-pages-posix 2017-aJune McEnroe 2020-12-14Update to OpenBSD 6.8June McEnroe 2020-12-14Update to NetBSD 9.1June McEnroe 2020-12-14Update to man-pages 5.09June McEnroe 2020-12-14Update to FreeBSD 12.2June McEnroe 2020-06-08Update to OpenBSD 6.7June McEnroe 2020-05-04Add hack for macOS to search extra man sectionsJune McEnroe 2020-05-04Don't clear MANSECTJune McEnroe