← back to AsSeenInMovies
asim /api/credits/stats — document why department=0 (TMDB ingest gap, future enrichment).
e25dd598c54f010cc0ae2052bfc0b9605837ed9a · 2026-05-13 09:16:35 -0700 · SteveStudio2
Files touched
Diff
commit e25dd598c54f010cc0ae2052bfc0b9605837ed9a
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Wed May 13 09:16:35 2026 -0700
asim /api/credits/stats — document why department=0 (TMDB ingest gap, future enrichment).
---
server.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/server.js b/server.js
index fc948dc..924da67 100644
--- a/server.js
+++ b/server.js
@@ -794,6 +794,11 @@ app.get('/api/spotted/random', async (_req, res) => {
// /api/credits/stats — aggregate counts on asim_credits. Departments, actors
// vs crew, top contributors. Cached 5 min (363k rows is heavy to recount).
+//
+// Note: department field is largely empty in current data (TMDB ingest
+// populates job_title and role, but department only on directing
+// credits). Expect acting=0 and writing=0 until a backfill ticks the
+// department column. Tracked as future enrichment work.
app.get('/api/credits/stats', async (_req, res) => {
try {
res.setHeader('Cache-Control', 'public, max-age=300, stale-while-revalidate=600');
← f10bd92 asim robots.txt: also reference /sitemap.txt (multiple Sitem
·
back to AsSeenInMovies
·
sitemap.xml: emit Last-Modified header for conditional GET ( 98f890a →