casper 1 개월 전
부모
커밋
90834c3fe0
2개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 0
      sri-server-bg01/api/v6/code3000.py
  2. 5 6
      sri-server-bg02/lib/JobManage.py

+ 2 - 0
sri-server-bg01/api/v6/code3000.py

@@ -58,6 +58,8 @@ async def code3001(**sources):
         del item['cockpit_id']
         del item['vehicle_id']
         d1.append(item)
+        d1.append(item)
+
 
     # d1 = [
     #     {

+ 5 - 6
sri-server-bg02/lib/JobManage.py

@@ -54,9 +54,8 @@ class JobManage(object):
         #         methods.remove_file(file_path)
 
         # --- cut list ---
-        # remove_count = 30  # 按天
-        remove_count = 30 * 24  # 按小时
-        for file_name in file_name_list[remove_count:]:
-            file_path = os.path.join(save_dir, file_name)
-            if methods.is_file(file_path):
-                methods.remove_file(file_path)
+        # remove_count = 30 * 24  # 按小时
+        # for file_name in file_name_list[remove_count:]:
+        #     file_path = os.path.join(save_dir, file_name)
+        #     if methods.is_file(file_path):
+        #         methods.remove_file(file_path)