Selaa lähdekoodia

deal with the Erro of the Data_ETL

huangyifan 1 vuosi sitten
vanhempi
commit
e41c68bcc4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      sync_get_order_data.py

+ 1 - 1
sync_get_order_data.py

@@ -15,7 +15,7 @@ def func_run():
     except Exception as e:
         print(e)
     try:
-        for days in range(-3,-63,-1): #(-2,-12,-1):
+        for days in (-2,-12,-1): #range(-3,-63,-1):
             conn = sp_api_client.SpApiRequest.Data_auth()
             cursor = conn.cursor()
             delete_date = (datetime.now() + timedelta(days=days-7)).strftime("%Y-%m-%d")