diff --git a/pyinaturalist/controllers/observation_controller.py b/pyinaturalist/controllers/observation_controller.py index fb6b4920..e78e24d4 100644 --- a/pyinaturalist/controllers/observation_controller.py +++ b/pyinaturalist/controllers/observation_controller.py @@ -39,7 +39,6 @@ upload, ) -# TODO: Just a guess; test maximum allowed IDs per request IDS_PER_REQUEST = 30 diff --git a/pyinaturalist/controllers/taxon_controller.py b/pyinaturalist/controllers/taxon_controller.py index 1aadc402..ca555391 100644 --- a/pyinaturalist/controllers/taxon_controller.py +++ b/pyinaturalist/controllers/taxon_controller.py @@ -58,7 +58,7 @@ def populate(self, taxon: Taxon, **params) -> Taxon: full_taxon = self.from_ids(taxon.id, **params).one() for key in set(fields_dict(Taxon).keys()) - preserve_keys: # Use getters/setters for LazyProperty instead of temp attrs (cls.foo vs cls._foo) - if hasattr(key, key.lstrip('_')): + if hasattr(taxon, key.lstrip('_')): key = key.lstrip('_') setattr(taxon, key, getattr(full_taxon, key)) return taxon