|
@@ -118,7 +118,7 @@ def get_kw(past=False):
|
|
|
num = 1
|
|
|
for k in keys:
|
|
|
if (num-1)%12 ==0:
|
|
|
- carousel_dict['contents'] = carousel_dict['contents']+[make_bubble(title,k)]
|
|
|
+ carousel_dict['contents'] = carousel_dict['contents']+[make_bubble(title)]
|
|
|
carousel_idx+=1
|
|
|
carousel_dict['contents'][carousel_idx]['body']['contents'] += [make_box(num,k)]
|
|
|
num+=1
|
|
@@ -220,12 +220,12 @@ def flex_test():
|
|
|
]
|
|
|
js['body']['contents'] = js['body']['contents'] + [row_dict]
|
|
|
return js
|
|
|
-def make_bubble(title,kw):
|
|
|
+def make_bubble(title):
|
|
|
box_dict = {
|
|
|
"type": "bubble",
|
|
|
"hero": {
|
|
|
"type": "image",
|
|
|
- "url": "https://api.ptt.cx:6443/get_trend_image?kw="+kw,
|
|
|
+ "url": "https://api.ptt.cx:6443/get_trend_image?kw=WWDC",
|
|
|
"size": "full",
|
|
|
"gravity": "top",
|
|
|
"margin": "none",
|