From 3db4c187d3e82719232376ecdc475fc60cf2fc73 Mon Sep 17 00:00:00 2001 From: chrisala Date: Tue, 17 Dec 2024 11:19:00 +1100 Subject: [PATCH] Add units attribute to Score for AtlasOfLivingAustralia/fieldcapture#3392 --- grails-app/domain/au/org/ala/ecodata/Score.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grails-app/domain/au/org/ala/ecodata/Score.groovy b/grails-app/domain/au/org/ala/ecodata/Score.groovy index 985f1792e..b2eb74aa1 100644 --- a/grails-app/domain/au/org/ala/ecodata/Score.groovy +++ b/grails-app/domain/au/org/ala/ecodata/Score.groovy @@ -44,6 +44,8 @@ class Score { Integer decimalPlaces + String units + /** Embedded document describing how the score should be calculated */ Map configuration @@ -60,6 +62,7 @@ class Score { scoreId unique: true name nullable: true, unique: true decimalPlaces nullable: true + units nullable: true } static mapping = { @@ -97,6 +100,7 @@ class Score { entityTypes:entityTypes, tags:tags, name:name, + units:units, decimalPlaces:decimalPlaces?:2 ] if (includeConfig) {