Skip to content

Commit ee40ae4

Browse files
committed
Merge pull request #526 from pyinat/fix-bundled-db
Bundle taxonomy.tar.gz with packages/installers instead of uncompressed CSVs
2 parents 19a1d22 + 67a7734 commit ee40ae4

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Fix fullscreen mode on macOS
1010
* Fix error when observation has no taxon
1111
* Fix error when observation has no `place_guess`
12+
* Fix error when searching taxa by name
1213
* Fix error on multiple `preferred_common_name` values
1314

1415
## 0.9.1 (2026-03-07)

naturtag/storage/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,5 +339,5 @@ def _add_db_taxonomy(self, taxa: list[Taxon]) -> list[Taxon]:
339339
def search(self, **params) -> WrapperPaginator[Taxon]:
340340
"""Search taxa, and save results to the database (for future reference by ID)"""
341341
results = super().search(**params).all()
342-
save_taxa(results)
342+
save_taxa(results, self.client.db_path)
343343
return WrapperPaginator(results)

packaging/bundle_taxonomy.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,4 @@ else
2626
tar_target=.
2727
fi
2828

29-
# Extract taxonomy archive and create distributable tarball
30-
tar -xvzf "${ASSETS}/taxonomy.tar.gz" --directory "${ASSETS}/"
31-
rm "${ASSETS}/taxonomy.tar.gz"
3229
tar -C "$tar_dir" -czvf "${ROOT_DIR}/naturtag-${dist_name}.tar.gz" "$tar_target"

0 commit comments

Comments
 (0)