Explorar el Código

ming 1st test

ming hace 4 años
padre
commit
c56d3fe62e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      newbot.py

+ 1 - 1
newbot.py

@@ -181,7 +181,7 @@ def message_text(event):
         sqls = 'SELECT * FROM trending_searches WHERE "'+now_end+'">= ts_date and "'+now_start+'"<=ts_date ORDER BY ts_date DESC'
         ls = []
         for row in db.query(sqls):
-            ls.append(row['tw_word'])
+            ls.append(row['ts_word'])
         ls = list(dict.fromkeys(ls))
         out_result = ''
         for w in ls: