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']
|
||||
|
||||
@@ -4,7 +4,7 @@ BASE = "/media/jens/cifs/jens@moon/projects/we_collect/results"
|
||||
VIN = 'WVWZZZE1ZMP010760'
|
||||
USER = 'alex'
|
||||
|
||||
sel_days = (23, 24)
|
||||
sel_days = (15, 24)
|
||||
|
||||
eps = {
|
||||
"odo":
|
||||
|
||||
Reference in New Issue
Block a user