Skip to content

Commit

Permalink
Add 'gss' to front of identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoWill committed Oct 24, 2023
1 parent dbd4c7e commit d4cdaea
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,10 @@ def name_to_id(self, feature):
return slugify(name)

def get_id(self, feature):
identifier = feature[self.id_field].value
if not identifier:
identifier = (
f"{self.org.official_identifier}:{self.name_to_id(feature)}"
)
return identifier
code = feature[self.id_field].value
if not code:
return f"{self.org.official_identifier}:{self.name_to_id(feature)}"
return f"gss:{code}"

def get_name(self, feature):
return feature[self.name_field].value
Expand Down

0 comments on commit d4cdaea

Please sign in to comment.