Browse Source

fix sheet

ming 3 năm trước cách đây
mục cha
commit
b7db868f81
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -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')