Skip to content

Commit 17e210f

Browse files
Fixed incorrect subsection name of weeds-australia
Updated source selection to allow dashes in subsection names
1 parent e8be3de commit 17e210f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dataSources/ala/profiles/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"noongar": {},
66
"southEastarnHemland": {},
77
"mangroveWatch": {},
8-
"weedsAustralia": {}
8+
"weeds-australia": {}
99
},
1010
"downloading": {
1111
"path": "./processing.py",

src/lib/data/sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _buildSourceName(self, locationName: str, databaseName: str, subsectionName:
2525
return f"{locationName}{self._divider}{databaseName}" + (f"{self._divider}{subsectionName}" if subsectionName else "")
2626

2727
def _splitSourceName(self, sourceName: str) -> tuple[str, str, str]:
28-
sourceSections = sourceName.split(self._divider)
28+
sourceSections = sourceName.split(self._divider, 2)
2929

3030
if len(sourceSections) <= 1:
3131
return sourceName, "", ""

0 commit comments

Comments
 (0)