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.
- app_kit/appbuilder/JSONBuilders/TaxonProfilesJSONBuilder.py +10 -0
- app_kit/appbuilder/JSONBuilders/__pycache__/TaxonProfilesJSONBuilder.cpython-313.pyc +0 -0
- app_kit/locale/de/LC_MESSAGES/django.mo +0 -0
- app_kit/locale/de/LC_MESSAGES/django.po +1968 -691
- app_kit/management/commands/export_all_nature_guides.py +14 -5
- app_kit/management/commands/import_all_nature_guides.py +16 -7
- {localcosmos_app_kit-0.9.12.dist-info → localcosmos_app_kit-0.9.14.dist-info}/METADATA +1 -1
- {localcosmos_app_kit-0.9.12.dist-info → localcosmos_app_kit-0.9.14.dist-info}/RECORD +11 -11
- {localcosmos_app_kit-0.9.12.dist-info → localcosmos_app_kit-0.9.14.dist-info}/WHEEL +0 -0
- {localcosmos_app_kit-0.9.12.dist-info → localcosmos_app_kit-0.9.14.dist-info}/licenses/LICENCE +0 -0
- {localcosmos_app_kit-0.9.12.dist-info → localcosmos_app_kit-0.9.14.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
Binary file
|