Refactored

This commit is contained in:
2024-10-24 21:06:36 +02:00
parent c0f76617f7
commit 073a6a62a1
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -148,10 +148,9 @@ def process(end_points, base_path: str, user: str, vin: str, sel_years=None, sel
last = {} last = {}
for filename in file_list_sorted: for filename in file_list_sorted:
file_path = os.path.join(day_path, filename) file_path = os.path.join(day_path, filename)
print(f"Open file: {filename}")
with open(file_path, "r") as fp: with open(file_path, "r") as fp:
records = json.load(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: for record in records:
try: try:
vehicle_diff = record['data'] vehicle_diff = record['data']
+1 -1
View File
@@ -4,7 +4,7 @@ BASE = "/media/jens/cifs/jens@moon/projects/we_collect/results"
VIN = 'WVWZZZE1ZMP010760' VIN = 'WVWZZZE1ZMP010760'
USER = 'alex' USER = 'alex'
sel_days = (23, 24) sel_days = (15, 24)
eps = { eps = {
"odo": "odo":