Skip to content

Commit

Permalink
fix script throwing an error if number of occurrences is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
aorin committed Oct 14, 2024
1 parent 569f80e commit 1c8ad0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/edit_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def create_metadata(template_resource, metadata_db_path, pygeoapi_config_out):
min_date, max_date = edit_db.get_table_dates(table_name)
no_of_occurrences = edit_db.get_amount_of_occurrences(table_name)
quality_dict = edit_db.get_quality_frequency(table_name)
title_name = compute_variables.get_title_name_from_table_name(table_name)
title_name = compute_variables.get_title_name_from_table_name(table_name)

if no_of_occurrences == 0:
continue

if 'polygon' in table_name:
geom_type = 'polygon'
Expand Down

0 comments on commit 1c8ad0e

Please sign in to comment.