瀏覽代碼

fix previous

ming 3 年之前
父節點
當前提交
e6b9d2c4e7
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      newbot.py

+ 2 - 1
newbot.py

@@ -230,11 +230,12 @@ def make_bubble(title,kw):
     id=''
     for row in db.query(sql_get_newest_data_date):
         id=row['iotid']
+    id = random.randint(1,1050)
     box_dict = {
       "type": "bubble",
       "hero": {
         "type": "image",
-        "url": "https://api.ptt.cx:6443/get_trend_image?kw_id="+str(930),
+        "url": "https://api.ptt.cx:6443/get_trend_image?kw_id="+str(id),
         "size": "full",
         "gravity": "top",
         "margin": "none",