diff --git a/backend/routers/projects.py b/backend/routers/projects.py index 9de68d8..b974ded 100644 --- a/backend/routers/projects.py +++ b/backend/routers/projects.py @@ -3651,13 +3651,21 @@ async def upload_all_project_data( group_file_count = 0 for fname, fbytes in file_list: - file_type = _bulk_classify_file(fname) fname_lower = fname.lower() - if fname_lower.endswith(".rnd"): - if "_leq_" in fname_lower: - leq_count += 1 - elif "_lp" in fname_lower: - lp_count += 1 + # For NL-43/NL-53 devices (not NL-32), skip Lp RND files — they are + # not needed for reports and only add noise. AU2/NL-32 files don't + # use this naming convention so they are unaffected. + if ( + fname_lower.endswith(".rnd") + and "_lp" in fname_lower + and _bulk_device_model != "NL-32" + ): + lp_count += 1 + continue + + file_type = _bulk_classify_file(fname) + if fname_lower.endswith(".rnd") and "_leq_" in fname_lower: + leq_count += 1 dest = output_dir / fname dest.write_bytes(fbytes)