Commit 35133588 authored by Volker Krause's avatar Volker Krause
Browse files

Fix detection whether we imported transfer data

This fixes a misdetection of DIVOC health certificates as bundle files
during import.
parent 6799fe94
......@@ -183,10 +183,10 @@ int Importer::importTransfers(const ReservationManager *resMgr, TransferManager
for (const auto &batchId : resMgr->batches()) {
auto t = Transfer::fromJson(QJsonDocument::fromJson(m_file->customData(transferDomain, Transfer::identifier(batchId, Transfer::Before))).object());
transferMgr->importTransfer(t);
count += t.state() != Transfer::Discarded ? 1 : 0;
count += t.state() != Transfer::UndefinedState ? 1 : 0;
t = Transfer::fromJson(QJsonDocument::fromJson(m_file->customData(transferDomain, Transfer::identifier(batchId, Transfer::After))).object());
transferMgr->importTransfer(t);
count += t.state() != Transfer::Discarded ? 1 : 0;
count += t.state() != Transfer::UndefinedState ? 1 : 0;
}
return count;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment