Jared 2 years ago
parent
commit
a08b3899e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      redis_set.py

+ 1 - 1
redis_set.py

@@ -815,7 +815,7 @@ for c in cursor:
 result=[]
 
 for qt in qtitles:
-  cursor=db.query('SELECT distinct trending_search_flat.qtitle,trending_search_flat.atitle,trending_search_flat.aimg,trending_search_flat.aurl,kw_related.original,kw_related.kw FROM gtrends.trending_search_flat,kw_related where trending_search_flat.qtitle=kw_related.original and  trending_search_flat.qtitle="'+qt+'" order by dt desc,qtitle desc;')
+  cursor=db.query('SELECT distinct trending_search_flat.qtitle,trending_search_flat.atitle,trending_search_flat.aimg,trending_search_flat.aurl,kw_related.original,kw_related.kw FROM gtrends.trending_search_flat,kw_related where trending_search_flat.qtitle=kw_related.original and  trending_search_flat.qtitle="'+qt+'" order by trending_search_flat.dt desc')
   title=None
   imgurl=None
   imgtitle=qlink=None