feat: enhance mass upload parsing, no longer imports tons of unneeded Lp Files.

This commit is contained in:
2026-03-05 22:22:19 +00:00
parent 015ce0a254
commit 240552751c

View File

@@ -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)