changes to the Schüler id getting
Release Inventarsystem / release-docker (push) Successful in 2m18s
Release Inventarsystem / release-docker (push) Successful in 2m18s
This commit is contained in:
@@ -685,7 +685,7 @@ def student_card_exists(student_card_id):
|
|||||||
client = MongoClient(cfg.MONGODB_HOST, cfg.MONGODB_PORT)
|
client = MongoClient(cfg.MONGODB_HOST, cfg.MONGODB_PORT)
|
||||||
db = _get_tenant_db(client)
|
db = _get_tenant_db(client)
|
||||||
users = db['student_cards']
|
users = db['student_cards']
|
||||||
exists = users.find_one({'SchülerName': normalized}) is not None
|
exists = users.find_one({'AusweisId': normalized}) is not None
|
||||||
client.close()
|
client.close()
|
||||||
return exists
|
return exists
|
||||||
|
|
||||||
|
|||||||
@@ -1383,7 +1383,7 @@
|
|||||||
updatePhysicalScannerModal('Ausweis erkannt. Jetzt Mediencodes scannen.', 'ok');
|
updatePhysicalScannerModal('Ausweis erkannt. Jetzt Mediencodes scannen.', 'ok');
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (document.getElementById('scanModeSelect').value === 'continuous') {
|
if (!physicalScannerModalOpen && document.getElementById('scanModeSelect').value === 'continuous') {
|
||||||
startScanner();
|
startScanner();
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
@@ -1396,7 +1396,7 @@
|
|||||||
updatePhysicalScannerModal('Kein Ausweis aktiv. Bitte zuerst den Ausweis scannen.', 'error');
|
updatePhysicalScannerModal('Kein Ausweis aktiv. Bitte zuerst den Ausweis scannen.', 'error');
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (document.getElementById('scanModeSelect').value === 'continuous') {
|
if (!physicalScannerModalOpen && document.getElementById('scanModeSelect').value === 'continuous') {
|
||||||
startScanner();
|
startScanner();
|
||||||
}
|
}
|
||||||
}, 2000);
|
}, 2000);
|
||||||
@@ -1449,7 +1449,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (document.getElementById('scanModeSelect').value === 'continuous') {
|
if (!physicalScannerModalOpen && document.getElementById('scanModeSelect').value === 'continuous') {
|
||||||
startScanner();
|
startScanner();
|
||||||
}
|
}
|
||||||
}, 1500);
|
}, 1500);
|
||||||
@@ -1517,7 +1517,11 @@
|
|||||||
try {
|
try {
|
||||||
const resp = await fetch('/api/library_return_by_code', {
|
const resp = await fetch('/api/library_return_by_code', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {'Content-Type': 'application/json'},
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'X-CSRFToken': '{{ csrf_token }}',
|
||||||
|
'X-CSRF-Token': '{{ csrf_token }}'
|
||||||
|
},
|
||||||
body: JSON.stringify({ item_code: code })
|
body: JSON.stringify({ item_code: code })
|
||||||
});
|
});
|
||||||
const result = await resp.json();
|
const result = await resp.json();
|
||||||
|
|||||||
Reference in New Issue
Block a user