Jared 2 tahun lalu
induk
melakukan
989e7c3c68
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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']