Skip to content
Snippets Groups Projects
Commit fdc7ad94 authored by Jan Reher's avatar Jan Reher
Browse files

Commented in the lines in apdUnitCreator.cpp that do the actual database

work. Test on test DB!
parent 1c6a127e
No related branches found
No related tags found
2 merge requests!4Many proven updates being brought into stable branch.,!3Commented in the lines in apdUnitCreator.cpp that do the actual database
Pipeline #1598 failed with stages
in 2 seconds
...@@ -48,14 +48,12 @@ int main(int argc, char* argv[]) { ...@@ -48,14 +48,12 @@ int main(int argc, char* argv[]) {
if (debug) cout << "Connection successful!" << endl; if (debug) cout << "Connection successful!" << endl;
for (auto newUnit = newUnits.begin(); newUnit < newUnits.end(); newUnit++) { for (auto newUnit = newUnits.begin(); newUnit < newUnits.end(); newUnit++) {
//proddb->createApdCapsule(newUnit->redSerial, newUnit->blueSerial); proddb->createApdCapsule(newUnit->redSerial, newUnit->blueSerial);
std::string capsuleSerial = newUnit->redSerial + "/" + newUnit->blueSerial; std::string capsuleSerial = newUnit->redSerial + "/" + newUnit->blueSerial;
std::cerr << "Capsule serial should be " << capsuleSerial << std::endl; proddb->createApdUnit(capsuleSerial, newUnit->crystalSerial, newUnit->barCode);
//proddb->createApdUnit(capsuleSerial, newUnit->crystalSerial, newUnit->barCode);
} }
// cout << "\nBox " << boxNo << " was successfully assigned to APDs from serial file " << fileName << ". At least I hope so. In any case, something happened for " << apdSerials.size() << " APDs." cout << "Created " << newUnits.size() << " APD Capsules and assigned them to Units.";
// << "\nThank you for using apdBoxSetter! :)" << endl << endl;
return (-newUnits.empty()); return (-newUnits.empty());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment