Quellcode durchsuchen

默认值修改

liweiquan vor 2 Jahren
Ursprung
Commit
bfce0c7e2e
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      app/services/datax.py

+ 2 - 2
app/services/datax.py

@@ -48,8 +48,8 @@ def datax_create_task(job_info: models.JobInfo):
             "current_key": current_key,
             "partition_key": "partition",
             "partition_word": partition_list[0] if len(partition_list) > 0 else 'xujiayue',
-            "partition_format": partition_list[2]  if len(partition_list) > 0 else 'xujiayue',
-            "partition_diff": partition_list[1]  if len(partition_list) > 0 else 'xujiayue'
+            "partition_format": partition_list[2]  if len(partition_list) > 0 else '%Y-%m-%d',
+            "partition_diff": partition_list[1]  if len(partition_list) > 0 else None
         }
     af_task = {
         "name": job_info.job_desc,