diff --git a/src/main/java/com/fi0x/edct/data/EDDN.java b/src/main/java/com/fi0x/edct/data/EDDN.java index ca2e93d..6c666fb 100644 --- a/src/main/java/com/fi0x/edct/data/EDDN.java +++ b/src/main/java/com/fi0x/edct/data/EDDN.java @@ -111,7 +111,7 @@ public void run() STATION station = JSONCleanup.getStationTrade(systemName, stationName, padsize, stationtype, trade, false); if(station != null) DBHandler.getInstance().setStationData(station, commodityID, false); - station = JSONCleanup.getStationTrade(systemName, stationName, padsize, stationtype, trade, false); + station = JSONCleanup.getStationTrade(systemName, stationName, padsize, stationtype, trade, true); if(station != null) DBHandler.getInstance().setStationData(station, commodityID, true); } Platform.runLater(() -> @@ -137,7 +137,7 @@ private int getInaraIDForCommodity(String commodityJSON) try { JSONObject json = (JSONObject) new JSONParser().parse(commodityJSON); - commodityName = (String) json.get("name"); + commodityName = ((String) json.get("name")).toLowerCase(); } catch(ParseException e) { Logger.WARNING("Could not parse an EDDN json for a commodity"); diff --git a/src/main/resources/css/datastorage.css b/src/main/resources/css/datastorage.css index caf41ac..453a969 100644 --- a/src/main/resources/css/datastorage.css +++ b/src/main/resources/css/datastorage.css @@ -3,13 +3,4 @@ } .label { -fx-padding: 0 5 0 0; -} -.button { - -fx-background-color: #cccccc; - -fx-text-fill: #404040; - -fx-padding: 5 10 5 10; -} -.button:hover { - -fx-background-color: #404040; - -fx-text-fill: #cccccc; } \ No newline at end of file