Commit 1e35ebdd authored by Matija Obreza's avatar Matija Obreza
Browse files

Always upsert sample data

parent 5742de5a
...@@ -131,11 +131,7 @@ public class FirstRunListener extends RunAsAdminListener { ...@@ -131,11 +131,7 @@ public class FirstRunListener extends RunAsAdminListener {
LOG.warn("Skipping creation of initial OAuth client"); LOG.warn("Skipping creation of initial OAuth client");
} }
if (accessionRepository.count() == 0) { addSomeAccessions();
addSomeAccessions();
} else {
LOG.warn("Skipping creation of dummy accession data");
}
} }
private void addCrop(String shortName) { private void addCrop(String shortName) {
......
[{ [{
"instCode": "PER001", "instCode": "PER001",
"doi": "10.0155/43X~", "doi": "10.18730/2BYS",
"acceNumb": "CIP 102081.28", "acceNumb": "CIP 400004",
"genus": "Solanum", "genus": "Ipomoea",
"cropName": "Sweetpotato", "orgCty": "PER"
"available": true, },
"sampStat": 400, {
"storage": [30], "instCode": "PER001",
"origCty": "PER" "doi": "10.18730/2BRK",
}] "acceNumb": "CIP 374080.5",
"acceName": [ "Perricholi "],
"genus": "Solanum",
"orgCty": "PER",
"acqDate": "19931026",
"availability": true
}
]
Supports Markdown
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