Browse Source

sql修改

yufeng0528 4 years ago
parent
commit
15a66cbee9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bbztx/get_data.py

+ 1 - 1
bbztx/get_data.py

@@ -10,7 +10,7 @@ query_articles_sql = '''
10 10
 select a.aid,a.title,a.cities,a.cid,a.other_info,"array_agg"(t.tag_value),days,a.recom,a."rank",read_count
11 11
 from articles a
12 12
 LEFT JOIN article_tags t on a.aid = t.aid
13
-where %s and a.atype = '0' and cid <> 20 AND (position('复制' in a.title) > 0
13
+where %s and a.atype = '0' and cid <> 20 AND position('复制' in a.title) = 0
14 14
 and a.stock_aid is NULL
15 15
 GROUP BY a.aid
16 16
 limit 200 OFFSET 0