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
This commit is contained in:
Massimiliano Assante 2014-10-06 16:58:14 +00:00
parent 8f002ec254
commit b5e55cc90a
1 changed files with 2 additions and 1 deletions

View File

@ -1495,7 +1495,8 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore {
for (Row<String, String> row : result.getResult()) {
for (Column<String> column : row.getColumns()) {
int curValue = Integer.parseInt(column.getStringValue());
toReturn.put(column.getName(), curValue);
if (curValue > 0)
toReturn.put(column.getName(), curValue);
}
}
return toReturn;