From 01dade2e26b59f2ced2b21e090f442190175ef00 Mon Sep 17 00:00:00 2001 From: Mats Bovin Date: Mon, 30 Sep 2024 14:26:53 +0200 Subject: [PATCH] Cleanup --- .../au/org/ala/collectory/GbifController.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/grails-app/controllers/au/org/ala/collectory/GbifController.groovy b/grails-app/controllers/au/org/ala/collectory/GbifController.groovy index 102723ef..e1e764e2 100644 --- a/grails-app/controllers/au/org/ala/collectory/GbifController.groovy +++ b/grails-app/controllers/au/org/ala/collectory/GbifController.groovy @@ -267,17 +267,18 @@ class GbifController { } /** - * Renders a compare view (GBIF vs Atlas) for datasets downloaded from GBIF + * Renders a compare view (GBIF vs Atlas) for datasets downloaded + * from GBIF for a specific data provider */ def compareWithAtlas() { - // Get DataProvider + // Get data provider DataProvider dataProvider = DataProvider.findByUid(params.uid) if (!dataProvider) { response.sendError(404) return } - // Get all GBIF data resources for this provider + // Get all GBIF data resources for this data provider def dataResources = DataResource.findAllByDataProviderAndGbifDataset(dataProvider, true) // Create a map with country -> list of data resources @@ -301,7 +302,6 @@ class GbifController { def pendingSyncCount = 0 def pendingIngestionCount = 0 - dataResources.each { dr -> def item = [ title: dr.name,