mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-12-26 22:38:58 +00:00
a foolish mistake made by a panicked dunce
This commit is contained in:
parent
b9609af0ee
commit
cbdddea33e
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@ import re, json
|
|||
def bot_accounts_add(mysql, cfg):
|
||||
if request.method == 'POST':
|
||||
# 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['handle'] == session['bot']:
|
||||
error = "Bots cannot learn from themselves."
|
||||
|
|
Loading…
Reference in a new issue