diff --git a/app/controllers/participation.py b/app/controllers/participation.py index a6a63a4..4b8d1ea 100644 --- a/app/controllers/participation.py +++ b/app/controllers/participation.py @@ -77,9 +77,7 @@ def make_taxa_html(challenge, taxa_dates_json = None): # Load all taxa names of the higher taxon (e.g. plants) all_taxa_names = common_helpers.load_taxon_file(taxon_file_id + "_all") - # Setup two html strings basic_taxa_html = "" - additional_taxa_html = "" # 1) Loop all basic_taxa_names for taxon_id, taxon_data in basic_taxa_names.items(): @@ -101,6 +99,14 @@ def make_taxa_html(challenge, taxa_dates_json = None): # 2) Loop remaining taxa_dates, i.e. the additional taxa user has observed + + # If taxa_dates is empty, set message text + if not taxa_dates: + additional_taxa_html = "