Archived
2

changed type names

This commit is contained in:
VLE2FE
2020-08-12 11:20:26 +02:00
parent a30f24f018
commit d2dea90b3a
7 changed files with 94 additions and 94 deletions

View File

@ -996,11 +996,11 @@ function customFields (comment, sampleNumber) {
function sampleType (type) {
type = stripSpaces(type).toLowerCase();
const allowedTypes = {'tension rod': 'tension rod', 'Zugstab': 'tension rod', 'part': 'part', 'granulate': 'granulate'};
const allowedTypes = {'tension rod': 'processed', 'Zugstab': 'processed', 'part': 'processed', 'granulate': 'as-delivered/raw'};
if (!allowedTypes[type]) {
typeLog.push(type);
}
return allowedTypes[type] ? allowedTypes[type] : 'part';
return allowedTypes[type] ? allowedTypes[type] : 'processed';
}
function stripSpaces(s) {