summaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-06-18 01:27:19 -0700
committerPinapelz <yukais@pinapelz.com>2024-06-18 01:27:19 -0700
commitdacfd759ff79a4be74500671d7adbec7c2447aa5 (patch)
tree8cce8ef89483cbe01cd38a47a4a0d9be74c00a4e /app.py
parentafe812e5ed3390dbf7e751cf76bfc3e0fc8c66d7 (diff)
return view count in channel endpoint
Diffstat (limited to 'app.py')
-rw-r--r--app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.py b/app.py
index 1169257..a096729 100644
--- a/app.py
+++ b/app.py
@@ -88,7 +88,7 @@ def get_channel_information(channel_name):
server = create_database_connection()
query = "SELECT * FROM subscriber_data WHERE name = %s"
data = server.execute_query(query, (channel_name,))
- channel_data = {"channel_id": data[0][1], "channel_name": data[0][3], "profile_pic": data[0][2], "subscribers": data[0][4], "sub_org": data[0][5], "video_count": data[0][6]}
+ channel_data = {"channel_id": data[0][1], "channel_name": data[0][3], "profile_pic": data[0][2], "subscribers": data[0][4], "sub_org": data[0][5], "video_count": data[0][6], "view_count": data[0][8]}
historical_data = server.execute_query("SELECT * FROM subscriber_data_historical WHERE name = %s", (channel_name,))
current_subscriber_count = data[0][4]
subscriber_points = []
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage