Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbov committed Sep 30, 2024
1 parent 20bb762 commit 01dade2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -301,7 +302,6 @@ class GbifController {
def pendingSyncCount = 0
def pendingIngestionCount = 0


dataResources.each { dr ->
def item = [
title: dr.name,
Expand Down

0 comments on commit 01dade2

Please sign in to comment.