|
@@ -194,7 +194,7 @@ def to_sheet():
|
|
|
for row in db.query(statement):
|
|
|
date_format = "%Y-%M-%d %H:%M:%S"
|
|
|
|
|
|
- df = df.append({'serial id':row['id'],'標題':['title'],'介紹':row['profile'],'url':row['url']
|
|
|
+ df = df.append({'serial id':row['id'],'標題':row['title'],'介紹':row['profile'],'url':row['url']
|
|
|
,'圖片':row['cover_img'],'價錢':row['price'],"折扣後價錢":row['price_discount'],'時數':row['hours']
|
|
|
,'單元數':row['units'],'點擊次數':row['clicks']}, ignore_index=True)
|
|
|
save_sheet(df,'interest_email','index')
|