잉여개발기 (SPDV) 5 лет назад
Родитель
Сommit
d56fe3837a
3 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      route/tool/func.py
  2. 1 1
      route/view_read.py
  3. 1 1
      version.json

+ 2 - 2
route/tool/func.py

@@ -1114,11 +1114,11 @@ def rd_plus(topic_num, date, name = None, sub = None):
 
 
 def history_plus(title, data, date, ip, send, leng, t_check = '', mode = ''):
 def history_plus(title, data, date, ip, send, leng, t_check = '', mode = ''):
     if mode == 'add':
     if mode == 'add':
-        curs.execute(db_change("select id from history where title = ? and type = '' order by id + 0 asc limit 1"), [title])
+        curs.execute(db_change("select id from history where title = ? order by id + 0 asc limit 1"), [title])
         id_data = curs.fetchall()
         id_data = curs.fetchall()
         id_data = str(int(id_data[0][0]) - 1) if id_data else '0'
         id_data = str(int(id_data[0][0]) - 1) if id_data else '0'
     else:
     else:
-        curs.execute(db_change("select id from history where title = ? and type = '' order by id + 0 desc limit 1"), [title])
+        curs.execute(db_change("select id from history where title = ? order by id + 0 desc limit 1"), [title])
         id_data = curs.fetchall()
         id_data = curs.fetchall()
         id_data = str(int(id_data[0][0]) + 1) if id_data else '1'
         id_data = str(int(id_data[0][0]) + 1) if id_data else '1'
         
         

+ 1 - 1
route/view_read.py

@@ -121,7 +121,7 @@ def view_read_2(conn, name):
 
 
         curs.execute(db_change('' + \
         curs.execute(db_change('' + \
             'select ip, date, leng, send, id from history ' + \
             'select ip, date, leng, send, id from history ' + \
-            'where title = ? and hide != "O" and type = "" order by id + 0 desc limit 3' + \
+            'where title = ? and hide != "O" order by id + 0 desc limit 3' + \
         ''), [name])
         ''), [name])
         sql_d = curs.fetchall()
         sql_d = curs.fetchall()
         if sql_d:
         if sql_d:

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
 {
     "beta" : {
     "beta" : {
-        "r_ver" : "v3.2.0-stable-13 (beta-36) (dev-2020-09-20-03)",
+        "r_ver" : "v3.2.0-stable-13 (beta-37) (dev-2020-09-26-01)",
         "c_ver" : "3203400",
         "c_ver" : "3203400",
         "s_ver" : "10"
         "s_ver" : "10"
     }
     }