Jared hace 2 años
padre
commit
989e7c3c68
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      gtrends/process_trends.py

+ 1 - 1
gtrends/process_trends.py

@@ -22,7 +22,7 @@ import gzip
 
 db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/gtrends?charset=utf8mb4')
 table=db['trending_search_flat']
-cursor=db.query('SELECT * FROM gtrends.trending_search_json order by id asc')
+cursor=db.query('SELECT * FROM gtrends.trending_search_json order by id desc limit 24')
 
 for c in cursor:
     js=c['json']