Refactored manticore SQL query to use scenes_stashed as primary table.

This commit is contained in:
2024-03-17 03:03:36 +01:00
parent 911461784b
commit 929de64aa0
6 changed files with 69 additions and 34 deletions

View File

@@ -6,7 +6,7 @@ async function fetchMovies() {
.filter((movie) => movie.cast.length > 0
&& movie.genres.length > 0
&& movie.cast.every((actor) => actor.charCodeAt(0) >= 65)) // throw out movies with non-alphanumerical actor names
.map((movie, index) => ({ id: index, ...movie }));
.map((movie, index) => ({ id: index + 1, ...movie }));
const actors = Array.from(new Set(movies.flatMap((movie) => movie.cast))).sort();
const genres = Array.from(new Set(movies.flatMap((movie) => movie.genres)));