casper 1 month ago
parent
commit
90834c3fe0
2 changed files with 7 additions and 6 deletions
  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['cockpit_id']
         del item['vehicle_id']
         del item['vehicle_id']
         d1.append(item)
         d1.append(item)
+        d1.append(item)
+
 
 
     # d1 = [
     # d1 = [
     #     {
     #     {

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

@@ -54,9 +54,8 @@ class JobManage(object):
         #         methods.remove_file(file_path)
         #         methods.remove_file(file_path)
 
 
         # --- cut list ---
         # --- 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)