Przeglądaj źródła

중복 방지 추가

Surplus_Up (2DU) 6 lat temu
rodzic
commit
20b8adfcbb
2 zmienionych plików z 3 dodań i 3 usunięć
  1. 2 2
      route/view_xref.py
  2. 1 1
      version.json

+ 2 - 2
route/view_xref.py

@@ -21,7 +21,7 @@ def view_xref_2(conn, name):
 
     if flask.request.args.get('change', '1') == '1':
         curs.execute(db_change("" + \
-            "select link, type from back " + \
+            "select distinct link, type from back " + \
             "where title = ? and not type = 'cat' and not type = 'no'" + \
             "order by link asc limit ?, 50" + \
         ""), [
@@ -30,7 +30,7 @@ def view_xref_2(conn, name):
         ])
     else:
         curs.execute(db_change("" + \
-            "select title, type from back " + \
+            "select distinct title, type from back " + \
             "where link = ? and not type = 'cat' and not type = 'no'" + \
             "order by link asc limit ?, 50" + \
         ""), [

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "master" : {
-        "r_ver" : "v3.1.8-master-20",
+        "r_ver" : "v3.1.8-master-21",
         "c_ver" : "3182000",
         "s_ver" : "8"
     }, "stable" : {