diff --git a/src/main/java/org/gcube/dataharvest/harvester/VREAccessesHarvester.java b/src/main/java/org/gcube/dataharvest/harvester/VREAccessesHarvester.java index b8191bb..0652cd8 100644 --- a/src/main/java/org/gcube/dataharvest/harvester/VREAccessesHarvester.java +++ b/src/main/java/org/gcube/dataharvest/harvester/VREAccessesHarvester.java @@ -100,7 +100,7 @@ public class VREAccessesHarvester extends BasicHarvester { String pagePath = row.getPagePath(); String[] splits = pagePath.split("/"); - if (splits.length > 2 && lowerCasedContext.compareTo(splits[2]) == 0) + if (splits.length > 2 && splits[2].startsWith(lowerCasedContext)) measure++; } HarvestedData harvest = new HarvestedData(HarvestedDataKey.ACCESSES, context, measure);