feat: enhance mass upload parsing, no longer imports tons of unneeded Lp Files.
This commit is contained in:
@@ -3651,13 +3651,21 @@ async def upload_all_project_data(
|
|||||||
group_file_count = 0
|
group_file_count = 0
|
||||||
|
|
||||||
for fname, fbytes in file_list:
|
for fname, fbytes in file_list:
|
||||||
file_type = _bulk_classify_file(fname)
|
|
||||||
fname_lower = fname.lower()
|
fname_lower = fname.lower()
|
||||||
if fname_lower.endswith(".rnd"):
|
# For NL-43/NL-53 devices (not NL-32), skip Lp RND files — they are
|
||||||
if "_leq_" in fname_lower:
|
# not needed for reports and only add noise. AU2/NL-32 files don't
|
||||||
leq_count += 1
|
# use this naming convention so they are unaffected.
|
||||||
elif "_lp" in fname_lower:
|
if (
|
||||||
lp_count += 1
|
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 = output_dir / fname
|
||||||
dest.write_bytes(fbytes)
|
dest.write_bytes(fbytes)
|
||||||
|
|||||||
Reference in New Issue
Block a user