Explorar el Código

每月2日备份表,新增备份custom_persist_target表

李莎 hace 2 años
padre
commit
609d1d813d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -32,7 +32,7 @@ end_date_month = (datetime.datetime.now() + dateutil.relativedelta.relativedelta
 # start_date_month = "20220903"
 # start_date_month = "20220903"
 # end_date_month = "20230201"
 # end_date_month = "20230201"
 def job():
 def job():
-    if datetime.date.today().day != 2:
+    if datetime.date.today().day != 4:
         print("%s 等待2号执行程序"%datetime_now())
         print("%s 等待2号执行程序"%datetime_now())
     else:
     else:
         # 连接mysql
         # 连接mysql