from .tool.func import *
def watch_list_2(conn):
curs = conn.cursor()
div = 'Limit : 10
'
ip = ip_check()
if ip_or_user(ip) != 0:
return redirect('/login')
curs.execute(db_change("delete from scan where user = ? and title = ''"), [ip])
conn.commit()
curs.execute(db_change("select title from scan where user = ?"), [ip])
data = curs.fetchall()
for data_list in data:
div += '' + data_list[0] + ' (' + load_lang('delete') + ')'
if data:
div = '
'
div += '(' + load_lang('add') + ')'
return easy_minify(flask.render_template(skin_check(),
imp = [load_lang('watchlist'), wiki_set(), custom(), other2([0, 0])],
data = div,
menu = [['manager', load_lang('return')]]
))