« get me outta code hell

content: consider "count in artist totals" in wiki total duration - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-09-11 05:45:40 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-09-11 05:45:40 -0300
commit2f7f2264c54aef4da050dc438cba8a408293235f (patch)
tree4f04c04408399fb71ec97a932ed8072aac4d9b7e /src/content/dependencies
parent52aaed662e3fc31dbd83861db83058aae604d206 (diff)
content: consider "count in artist totals" in wiki total duration
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateListingsIndexPage.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content/dependencies/generateListingsIndexPage.js b/src/content/dependencies/generateListingsIndexPage.js
index b57ebe15..d0eff96f 100644
--- a/src/content/dependencies/generateListingsIndexPage.js
+++ b/src/content/dependencies/generateListingsIndexPage.js
@@ -14,7 +14,9 @@ export default {
       wikiName: wikiInfo.name,
       numTracks: trackData.length,
       numAlbums: albumData.length,
-      totalDuration: getTotalDuration(trackData),
+      totalDuration:
+        getTotalDuration(
+          trackData.filter(track => track.countInArtistTotals)),
     };
   },