mirror of
https://codeberg.org/matkoniecz/list_how_openstreetmap_can_be_improved_with_alltheplaces_data.git
synced 2025-05-13 05:03:09 +02:00
minor fixes suggested by linter
This commit is contained in:
parent
5fa8fc486b
commit
e7feeb0d02
1 changed files with 3 additions and 3 deletions
|
@ -73,7 +73,7 @@ def main():
|
|||
print(area)
|
||||
checked_keys_per_atp, known_unavailable_listings = get_import_listing_configuration_for_atp_spiders()
|
||||
generate_overview(checked_keys_per_atp, known_unavailable_listings, overwiev_output_location) # to reset potentially existing one to prevent confusion
|
||||
for atp_code in checked_keys_per_atp.keys(): # note, data is fetched from matches which may be based on a different version of ATP, with different spiders being broken or some missing/not yet present. But looking at files directly seems to be an overkill for such diagnosis tool.
|
||||
for atp_code in checked_keys_per_atp: # note, data is fetched from matches which may be based on a different version of ATP, with different spiders being broken or some missing/not yet present. But looking at files directly seems to be an overkill for such diagnosis tool.
|
||||
print(atp_code)
|
||||
process_single_dataset(checked_keys_per_atp[atp_code], atp_code, area)
|
||||
for entry in checked_keys_per_atp[atp_code]:
|
||||
|
@ -137,7 +137,7 @@ def get_import_listing_configuration_for_atp_spiders():
|
|||
def list_of_output_files(checked_keys_per_atp, overview_output_filename):
|
||||
collected_files_in_output_folder = []
|
||||
collected_files_in_output_folder.append(overview_output_filename)
|
||||
for atp_code, data_group in checked_keys_per_atp.items():
|
||||
for _atp_code, data_group in checked_keys_per_atp.items():
|
||||
if 'not_yet_generated' not in data_group:
|
||||
# if there are problems in ATP data it should not be generated
|
||||
for data in data_group:
|
||||
|
@ -183,7 +183,7 @@ def generate_overview(checked_keys_per_atp, known_unavailable_listings, location
|
|||
if checked_key_info == None and unavailability_if_any == None:
|
||||
rich.print(checked_keys_per_atp[atp_code])
|
||||
rich.print(unavailability_if_any)
|
||||
raise
|
||||
raise Exception("unexpected")
|
||||
columns.append(format_relevant_listing_into_field(atp_code, checked_key_info, unavailability_if_any))
|
||||
spider_data.append({
|
||||
'columns': columns,
|
||||
|
|
Loading…
Add table
Reference in a new issue