From b5e55cc90ae3f4c926aab656b3be8277fd13c139 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Mon, 6 Oct 2014 16:58:14 +0000 Subject: [PATCH] not returning hashtags count less than 1 git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@100471 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gcube/portal/databook/server/DBCassandraAstyanaxImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java b/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java index 8b6b1b8..fb78f92 100644 --- a/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java +++ b/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java @@ -1495,7 +1495,8 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore { for (Row row : result.getResult()) { for (Column column : row.getColumns()) { int curValue = Integer.parseInt(column.getStringValue()); - toReturn.put(column.getName(), curValue); + if (curValue > 0) + toReturn.put(column.getName(), curValue); } } return toReturn;