Fixed bug in loader which caused it to load only a single csv file.
This commit is contained in:
parent
2e66939727
commit
1ce5e0db9c
@ -27,9 +27,7 @@ public class ComponentPresetDatabase extends Database<ComponentPreset> implement
|
||||
|
||||
List<ComponentPreset> returnval = new ArrayList<ComponentPreset>();
|
||||
|
||||
InputStream is = ComponentPresetDao.class.getResourceAsStream("/datafiles/bodytubepresets.csv");
|
||||
|
||||
PresetCSVReader parser = new PresetCSVReader(is);
|
||||
PresetCSVReader parser = new PresetCSVReader(stream);
|
||||
List<TypedPropertyMap> list = parser.parse();
|
||||
for( TypedPropertyMap o : list ) {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user