Skip to content

Commit

Permalink
Add units attribute to Score for AtlasOfLivingAustralia/fieldcapture#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Dec 17, 2024
1 parent 6cfbddc commit 3db4c18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grails-app/domain/au/org/ala/ecodata/Score.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class Score {

Integer decimalPlaces

String units


/** Embedded document describing how the score should be calculated */
Map configuration
Expand All @@ -60,6 +62,7 @@ class Score {
scoreId unique: true
name nullable: true, unique: true
decimalPlaces nullable: true
units nullable: true
}

static mapping = {
Expand Down Expand Up @@ -97,6 +100,7 @@ class Score {
entityTypes:entityTypes,
tags:tags,
name:name,
units:units,
decimalPlaces:decimalPlaces?:2
]
if (includeConfig) {
Expand Down

0 comments on commit 3db4c18

Please sign in to comment.