瀏覽代碼

좀 더 깔끔하게

Surplus_Up (2DU) 7 年之前
父節點
當前提交
e2f66f0c24
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      route/tool/func.py

+ 4 - 1
route/tool/func.py

@@ -841,7 +841,10 @@ def history_plus(title, data, date, ip, send, leng):
         send = send[:128]
 
     if get_type:
-        send += get_type.groups()[0]
+        if send == '':
+            send = get_type.groups()[0]
+        else:
+            send += ' ' + get_type.groups()[0]
     
     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',