|
@@ -97,7 +97,7 @@ async def random_kw():
|
|
statement = 'SELECT * FROM trending_searches order by rand() limit 20'
|
|
statement = 'SELECT * FROM trending_searches order by rand() limit 20'
|
|
logs = []
|
|
logs = []
|
|
for row in db.query(statement):
|
|
for row in db.query(statement):
|
|
- logs.append([{'kw':row['ts_word']}])
|
|
|
|
|
|
+ logs.append({'kw':row['ts_word']})
|
|
return logs
|
|
return logs
|
|
|
|
|
|
|
|
|