fix: nl32 data date now reads from start_time.

This commit is contained in:
2026-03-05 22:28:10 +00:00
parent 240552751c
commit 6070d03e83
2 changed files with 7 additions and 3 deletions

View File

@@ -3412,9 +3412,13 @@ def _bulk_parse_rnh(content: bytes) -> dict:
"Serial Number": "serial_number", "Serial Number": "serial_number",
"Store Name": "store_name", "Store Name": "store_name",
"Index Number": "index_number", "Index Number": "index_number",
# NL-43/NL-53 use "Measurement Start/Stop Time"
"Measurement Start Time": "start_time_str", "Measurement Start Time": "start_time_str",
"Measurement Stop Time": "stop_time_str", "Measurement Stop Time": "stop_time_str",
"Total Measurement Time": "total_time_str", "Total Measurement Time": "total_time_str",
# AU2/NL-32 use bare "Start Time" / "Stop Time"
"Start Time": "start_time_str",
"Stop Time": "stop_time_str",
} }
if key in mapping: if key in mapping:
result[mapping[key]] = value result[mapping[key]] = value

View File

@@ -235,7 +235,7 @@
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"></path> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"></path>
</svg> </svg>
Upload Days Upload Data
</button> </button>
<button onclick="htmx.trigger('#unified-files', 'refresh')" <button onclick="htmx.trigger('#unified-files', 'refresh')"
class="px-3 py-2 text-sm bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors"> class="px-3 py-2 text-sm bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors">
@@ -248,7 +248,7 @@
</div> </div>
</div> </div>
<!-- Upload Days Panel --> <!-- Upload Data Panel -->
<div id="upload-all-panel" class="hidden border-b border-gray-200 dark:border-gray-700"> <div id="upload-all-panel" class="hidden border-b border-gray-200 dark:border-gray-700">
<div class="px-6 py-4 bg-gray-50 dark:bg-gray-800/50"> <div class="px-6 py-4 bg-gray-50 dark:bg-gray-800/50">
<p class="text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Bulk Import — Select Folder</p> <p class="text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Bulk Import — Select Folder</p>
@@ -1631,7 +1631,7 @@ document.getElementById('schedule-modal')?.addEventListener('click', function(e)
} }
}); });
// ── Upload Days ─────────────────────────────────────────────────────────────── // ── Upload Data ───────────────────────────────────────────────────────────────
function toggleUploadAll() { function toggleUploadAll() {
const panel = document.getElementById('upload-all-panel'); const panel = document.getElementById('upload-all-panel');