mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-26 00:58:59 +00:00
Compare commits
No commits in common. "38463fefb2aec3a1cd59f7e9efdd598296205573" and "2cbad2eff34de1a953726039ceb7a5a358931ac9" have entirely different histories.
38463fefb2
...
2cbad2eff3
3 changed files with 3 additions and 7 deletions
|
@ -86,9 +86,7 @@ db = MySQLdb.connect(
|
||||||
host = cfg['db_host'],
|
host = cfg['db_host'],
|
||||||
user=cfg['db_user'],
|
user=cfg['db_user'],
|
||||||
passwd=cfg['db_pass'],
|
passwd=cfg['db_pass'],
|
||||||
db=cfg['db_name'],
|
db=cfg['db_name']
|
||||||
use_unicode=True,
|
|
||||||
charset="utf8mb4"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
|
|
|
@ -11,9 +11,7 @@ db = MySQLdb.connect(
|
||||||
host = cfg['db_host'],
|
host = cfg['db_host'],
|
||||||
user=cfg['db_user'],
|
user=cfg['db_user'],
|
||||||
passwd=cfg['db_pass'],
|
passwd=cfg['db_pass'],
|
||||||
db=cfg['db_name'],
|
db=cfg['db_name']
|
||||||
use_unicode=True,
|
|
||||||
charset="utf8mb4"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
print("Cleaning up database")
|
print("Cleaning up database")
|
||||||
|
|
2
webui.py
2
webui.py
|
@ -435,7 +435,7 @@ def bot_create():
|
||||||
return redirect(url_for("home"), 303)
|
return redirect(url_for("home"), 303)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if 'step' in session and session['step'] == 4:
|
if session['step'] == 4:
|
||||||
try:
|
try:
|
||||||
# test authentication
|
# test authentication
|
||||||
client = Mastodon(client_id=session['client_id'], client_secret=session['client_secret'], api_base_url=session['instance'])
|
client = Mastodon(client_id=session['client_id'], client_secret=session['client_secret'], api_base_url=session['instance'])
|
||||||
|
|
Loading…
Reference in a new issue