def backup_mysql_results():
produce.Async_log(g.user, request.url)
try:
if Redis.exists('finish_backup'):
Infos = Redis.lrange('finish_backup',0,-1)
if Infos:
Infos = [eval(info) for info in set(Infos)]
tt = time.strftime('%Y-%m-%d', time.localtime())
tables = ('??','?????','MYSQL???','?????',' ??')
return render_template('backup_mysql_results.html',Main_Infos=g.main_infos,Infos=Infos,tt=tt,tables=tables)
else:
raise flash('????:?????????!')
else:
raise flash('????:?????????!')
except Exception as e:
if 'old' not in str(e):
flash(str(e))
return render_template('Message_static.html',Main_Infos=g.main_infos)
评论列表
文章目录