aboutsummaryrefslogtreecommitdiffstats
path: root/html_builders/builder.py
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-07-02 13:01:07 -0700
committerPinapelz <donaldshan1@outlook.com>2023-07-02 13:01:07 -0700
commitdaf431e1b8438bdba2711387873351e2fae09bdd (patch)
treecc3fd7d28bb4c80b2047657340575b259609db33 /html_builders/builder.py
parent25141f6b458cba1ac8240b5bc2a7f4cf73274cab (diff)
fix: domain formatting issues (redirects)
Diffstat (limited to 'html_builders/builder.py')
-rw-r--r--html_builders/builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/html_builders/builder.py b/html_builders/builder.py
index dea2e8c..fe84f11 100644
--- a/html_builders/builder.py
+++ b/html_builders/builder.py
@@ -66,7 +66,7 @@ def build_individual_page(server, CONFIG: dict, channel_data: str):
"subscriber_trend": graphs.plot_subscriber_count_over_time(server, CONFIG["TABLES"]["historical"], gtitle = "Subscriber Count Over Time for " + channel_name, overrideQuery = f"SELECT name, subscriber_count, timestamp, channel_id FROM {CONFIG['TABLES']['historical']} WHERE channel_id = '{channel_id}' ORDER by timestamp DESC", markers = "lines+markers"),
"divider": "Recent Subscriber Data:",
"weekly_trend": graphs.plot_subscriber_count_over_time(server, CONFIG["TABLES"]["historical"], gtitle = "Weekly Subscriber Count Over Time for " + channel_name, overrideQuery = f"SELECT name, subscriber_count, timestamp, channel_id FROM {CONFIG['TABLES']['historical']} WHERE channel_id = '{channel_id}' AND timestamp >= DATE_SUB(NOW(), INTERVAL 7 DAY) ORDER by timestamp DESC", markers = "lines+markers"),
- "full_table_url": CONFIG["WEBSITE"]["homepage"] + "/tables/"+channel_name
+ "full_table_url": "/tables/"+channel_name
}
output = template.render(input_dict)
with open(page_path, "w", encoding="utf-8") as f:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage