1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

a foolish mistake made by a panicked dunce

This commit is contained in:
Lynne Megido 2020-04-11 17:25:40 +10:00
parent b9609af0ee
commit cbdddea33e
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90

View file

@ -6,7 +6,8 @@ import re, json
def bot_accounts_add(mysql, cfg): def bot_accounts_add(mysql, cfg):
if request.method == 'POST': if request.method == 'POST':
# remove leading/trailing whitespace # remove leading/trailing whitespace
session['handle'] = request.form['account'].rstrip().lstrip() if 'account' in request.form:
session['handle'] = request.form['account'].rstrip().lstrip()
if session['step'] == 1: if session['step'] == 1:
if session['handle'] == session['bot']: if session['handle'] == session['bot']:
error = "Bots cannot learn from themselves." error = "Bots cannot learn from themselves."