localcosmos-app-kit 0.9.12__py3-none-any.whl → 0.9.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -566,6 +566,16 @@ class TaxonProfilesJSONBuilder(JSONBuilder):
566
566
  taxon_json = self.app_release_builder.taxa_builder.serialize_taxon_extended(relationship.taxon)
567
567
  related_taxon_json = self.app_release_builder.taxa_builder.serialize_taxon_extended(relationship.related_taxon)
568
568
 
569
+ if relationship.relationship_type.taxon_role == None and relationship.relationship_type.related_taxon_role == None:
570
+ # make 'taxon' the profile taxon
571
+ if relationship.taxon.taxon_nuid == profile_taxon.taxon_nuid:
572
+ pass
573
+ else:
574
+ # swap
575
+ temp = taxon_json
576
+ taxon_json = related_taxon_json
577
+ related_taxon_json = temp
578
+
569
579
  relationship_json = {
570
580
  'taxon': taxon_json,
571
581
  'relatedTaxon': related_taxon_json,
Binary file