diff options
author | Magdalena GrodziĆska <mag.grodzinska@gmail.com> | 2020-01-12 15:25:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-12 15:25:07 +0100 |
commit | 7e079f18eb919c0c64b40321e2860420f866a60a (patch) | |
tree | 85cccc543ba5531f88f0d9c2216dbd9136ae2ab6 /src/main/java/pl/edu/mimuw/cloudatlas/fetcher | |
parent | 3ebdb1ce162e13c5accf7f3e65a35863504026dd (diff) | |
parent | f2841b8bfe142a2d6643cfe9bb9aca99cb8f6d23 (diff) |
Merge branch 'master' into optimize_tests_lol
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/fetcher')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/fetcher/Fetcher.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/fetcher/Fetcher.java b/src/main/java/pl/edu/mimuw/cloudatlas/fetcher/Fetcher.java index 15f8a59..12d795a 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/fetcher/Fetcher.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/fetcher/Fetcher.java @@ -92,7 +92,7 @@ public class Fetcher { } // https://jj09.net/interprocess-communication-python-java/ - private static void fetchData() { + private static void fetchData(String zonePath) { BufferedReader bufferRead; ArrayList deserializedAttribs; String jsonAttribs; @@ -111,7 +111,7 @@ public class Fetcher { deserializedAttribs = deserializeAttribs(jsonAttribs); for (int i = 0; i < fetcherAttributeNames.size(); i++) { api.setAttributeValue( - "/uw/violet07", + zonePath, fetcherAttributeNames.get(i), packAttributeValue( deserializedAttribs.get(i), @@ -143,7 +143,8 @@ public class Fetcher { } public static void main(String[] args) { + String zonePath = System.getProperty("zone_path"); parseArgs(args); - fetchData(); + fetchData(zonePath); } } |