Commit 42ca97b0 authored by Matija Obreza's avatar Matija Obreza

Use online version of SGSV database

parent c619f269
......@@ -87,21 +87,20 @@ public class SGSVUpdate {
@PreAuthorize("hasRole('ADMINISTRATOR')")
public void updateSGSV() {
importFile();
// downloadSgsv();
downloadSgsv();
}
public void importFile() {
File file = new File("/Users/matijaobreza/Downloads/sgsv_templates_20160907.tab");
try (InputStream fis = new FileInputStream(file)) {
importSGSVStream(fis);
} catch (FileNotFoundException e) {
LOG.error(e);
} catch (IOException e) {
LOG.error(e);
}
}
// public void importFile() {
// File file = new File("~/Downloads/sgsv_templates_20160907.tab");
// try (InputStream fis = new FileInputStream(file)) {
// importSGSVStream(fis);
//
// } catch (FileNotFoundException e) {
// LOG.error(e);
// } catch (IOException e) {
// LOG.error(e);
// }
// }
public void downloadSgsv() {
LOG.warn("Importing SGSV data from " + SGSV_DOWNLOAD_URL);
......
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