From 2efc5ed38d2a48c5d7de27867bfb6c43bef86793 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 28 Oct 2021 23:30:38 -0700 Subject: [PATCH] Fix subscript typo. --- frontends/ycdl_flask/backend/endpoints/channel_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/ycdl_flask/backend/endpoints/channel_endpoints.py b/frontends/ycdl_flask/backend/endpoints/channel_endpoints.py index e22279c..a5e71b6 100644 --- a/frontends/ycdl_flask/backend/endpoints/channel_endpoints.py +++ b/frontends/ycdl_flask/backend/endpoints/channel_endpoints.py @@ -105,7 +105,7 @@ def get_watch(): @flasktools.required_fields(['channel_id'], forbid_whitespace=True) @site.route('/add_channel', methods=['POST']) def post_add_channel(): - channel_id = request.form.['channel_id'] + channel_id = request.form['channel_id'] if not (len(channel_id) == 24 and channel_id.startswith('UC')): # It seems they have given us a username instead. try: