Explorar o código

좀 더 깔끔하게

Surplus_Up (2DU) %!s(int64=7) %!d(string=hai) anos
pai
achega
e2f66f0c24
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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',