Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ac7a8b1553 | |||
| 5cda952072 |
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
uploads/
|
uploads/
|
||||||
__pycache__/
|
|
||||||
*.py[cod]
|
|
||||||
*.db
|
*.db
|
||||||
.env
|
cert.pem
|
||||||
|
key.pem
|
||||||
|
__pycache__/
|
||||||
|
|||||||
Binary file not shown.
+3
-1
@@ -818,7 +818,9 @@ async function uploadSelected() {
|
|||||||
html += '<div style="margin-top:4px;color:var(--green);">✅ Matched: <strong>' + esc(ocr.match_5dash6) + '</strong> → machine ID: ' + mid + '</div>';
|
html += '<div style="margin-top:4px;color:var(--green);">✅ Matched: <strong>' + esc(ocr.match_5dash6) + '</strong> → machine ID: ' + mid + '</div>';
|
||||||
lookupAsset(mid);
|
lookupAsset(mid);
|
||||||
} else if (ocr.match_5plus) {
|
} else if (ocr.match_5plus) {
|
||||||
html += '<div style="margin-top:4px;color:var(--amber);">⚠️ Digits: <strong>' + esc(ocr.match_5plus) + '</strong> (no 5-6 pattern)</div>';
|
const mid = ocr.match_5plus.replace(/[^0-9]/g,'').slice(0, 5);
|
||||||
|
html += '<div style="margin-top:4px;color:var(--amber);">🔍 Digits: <strong>' + esc(ocr.match_5plus) + '</strong> → trying ID <strong>' + mid + '</strong></div>';
|
||||||
|
lookupAsset(mid);
|
||||||
} else {
|
} else {
|
||||||
html += '<div style="margin-top:4px;color:var(--text3);">No machine ID found in image</div>';
|
html += '<div style="margin-top:4px;color:var(--text3);">No machine ID found in image</div>';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user