aboutsummaryrefslogtreecommitdiffstats
path: root/nijitrack.py
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-06-23 14:26:10 -0700
committerPinapelz <donaldshan1@outlook.com>2023-06-23 14:26:10 -0700
commit73b0a200da796442b915c7085ad85a68772ac77e (patch)
treee0b65ae10212bf49759ac2ba27ee324005259022 /nijitrack.py
parentf10d68b75062aaf401350833e19edee833c6684b (diff)
fix: indexing error with excluded channels
Diffstat (limited to 'nijitrack.py')
-rw-r--r--nijitrack.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/nijitrack.py b/nijitrack.py
index a137edb..20cc4c8 100644
--- a/nijitrack.py
+++ b/nijitrack.py
@@ -60,9 +60,16 @@ def generate_individual_pages(server: SQLHandler, data: list):
os.mkdir("stats")
if not os.path.exists("tables"):
os.mkdir("tables")
+ excluded_channels = fs.get_excluded_channels()
for channel in data:
- builder.build_individual_page(server, CONFIG, channel)
- builder.build_table_page(server, CONFIG, channel)
+ if channel["id"] in excluded_channels:
+ continue
+ try:
+ builder.build_individual_page(server, CONFIG, channel)
+ builder.build_table_page(server, CONFIG, channel)
+ except Exception as e:
+ print(f"ERROR: {e} - {channel['name']}")
+ continue
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage