fix: 公众号make_simple_csv_from_db取每月1号

This commit is contained in:
caoqianming 2024-05-17 13:43:17 +08:00
parent 3d3f2a971f
commit c37e2f3d1f
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def trans_to_json():
def make_simple_csv_from_db(now: datetime):
# 只查找当前月份更新的公众号数据
now_month_str = now.strftime('%Y-%m-%d 00:00:00')
now_month_str = now.strftime('%Y-%m-01 00:00:00')
conn = sqlite3.connect(os.path.join(BASE_DIR, 'db_folder/test.db'))
query = f"""
SELECT