Refactored
This commit is contained in:
+1
-2
@@ -148,10 +148,9 @@ def process(end_points, base_path: str, user: str, vin: str, sel_years=None, sel
|
||||
last = {}
|
||||
for filename in file_list_sorted:
|
||||
file_path = os.path.join(day_path, filename)
|
||||
print(f"Open file: {filename}")
|
||||
with open(file_path, "r") as fp:
|
||||
records = json.load(fp)
|
||||
print(f"Found {len(records)} records")
|
||||
print(f"In file \"{filename}\": found {len(records):4d} records")
|
||||
for record in records:
|
||||
try:
|
||||
vehicle_diff = record['data']
|
||||
|
||||
Reference in New Issue
Block a user