Browse Source

ming 1st test

ming 3 years ago
parent
commit
c56d3fe62e
1 changed files with 1 additions and 1 deletions
  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: