From 786bbc337fbf7aedae1b841ded3838bee4a81e72 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Wed, 3 Feb 2021 16:50:23 +0100 Subject: [PATCH] Fixed GCat constant --- .../java/org/gcube/gcat/persistence/ckan/CKANPackage.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java b/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java index 8f91e24..2d36947 100644 --- a/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java +++ b/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java @@ -100,8 +100,6 @@ public class CKANPackage extends CKAN { // The 'results' array is included in the 'result' object for package_search private static final String RESULTS_KEY = "results"; - private static final String COUNT_KEY = "count"; - protected static final String PRIVATE_KEY = "private"; protected static final String SEARCHABLE_KEY = "searchable"; protected static final String CAPACITY_KEY = "capacity"; @@ -347,7 +345,7 @@ public class CKANPackage extends CKAN { sendGetRequest(LIST, parameters); - int count = result.get(COUNT_KEY).asInt(); + int count = result.get(GCatConstants.COUNT_KEY).asInt(); return count; }