From 2617f87e17b94646eb5a248360a7e0f9b7675d3e Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 10 Aug 2019 18:12:02 -0700 Subject: Add subscribe button on channels --- youtube/subscriptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/subscriptions.py') diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py index fa0570c..c347e76 100644 --- a/youtube/subscriptions.py +++ b/youtube/subscriptions.py @@ -519,7 +519,7 @@ def get_subscriptions_page(): def post_subscriptions_page(): action = request.values['action'] if action == 'subscribe': - if len(request.values.getlist('channel_id')) != len(request.values('channel_name')): + if len(request.values.getlist('channel_id')) != len(request.values.getlist('channel_name')): return '400 Bad Request, length of channel_id != length of channel_name', 400 with_open_db(_subscribe, zip(request.values.getlist('channel_id'), request.values.getlist('channel_name'))) -- cgit v1.2.3