Fixed GCat constant

This commit is contained in:
Luca Frosini 2021-02-03 16:50:23 +01:00
parent f258ff80a2
commit 786bbc337f
1 changed files with 1 additions and 3 deletions

View File

@ -100,8 +100,6 @@ public class CKANPackage extends CKAN {
// The 'results' array is included in the 'result' object for package_search // The 'results' array is included in the 'result' object for package_search
private static final String RESULTS_KEY = "results"; 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 PRIVATE_KEY = "private";
protected static final String SEARCHABLE_KEY = "searchable"; protected static final String SEARCHABLE_KEY = "searchable";
protected static final String CAPACITY_KEY = "capacity"; protected static final String CAPACITY_KEY = "capacity";
@ -347,7 +345,7 @@ public class CKANPackage extends CKAN {
sendGetRequest(LIST, parameters); sendGetRequest(LIST, parameters);
int count = result.get(COUNT_KEY).asInt(); int count = result.get(GCatConstants.COUNT_KEY).asInt();
return count; return count;
} }