Fix subscript typo.

This commit is contained in:
voussoir 2021-10-28 23:30:38 -07:00
parent 5d9abf6e65
commit 2efc5ed38d
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -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: