|
|
@@ -829,24 +829,18 @@ def rd_plus(title, sub, date):
|
|
|
else:
|
|
|
curs.execute("insert into rd (title, sub, date) values (?, ?, ?)", [title, sub, date])
|
|
|
|
|
|
-def history_plus(title, data, date, ip, send, leng):
|
|
|
+def history_plus(title, data, date, ip, send, leng, t_check = ''):
|
|
|
curs.execute("select id from history where title = ? order by id + 0 desc limit 1", [title])
|
|
|
id_data = curs.fetchall()
|
|
|
|
|
|
- get_type = re.search('(\((?:(?:(?!\)).)+)\))$', send)
|
|
|
- send = re.sub('(\((?:(?:(?!\)).)+)\))$', '', send)
|
|
|
-
|
|
|
send = re.sub('\(|\)|<|>', '', send)
|
|
|
|
|
|
if len(send) > 128:
|
|
|
send = send[:128]
|
|
|
|
|
|
- if get_type:
|
|
|
- if send == '':
|
|
|
- send = get_type.groups()[0]
|
|
|
- else:
|
|
|
- send += ' ' + get_type.groups()[0]
|
|
|
-
|
|
|
+ if t_check != '':
|
|
|
+ send += ' (' + t_check + ')'
|
|
|
+
|
|
|
curs.execute("insert into history (id, title, data, date, ip, send, leng, hide) values (?, ?, ?, ?, ?, ?, ?, '')", [
|
|
|
str(int(id_data[0][0]) + 1) if id_data else '1',
|
|
|
title,
|