v0.5.0 update

pull/140/head v0.5.0
Mason10198 2 years ago
parent 4b3faf5c86
commit 809995c42c

@ -1473,10 +1473,10 @@ def load_county_names(md_file):
county_data = {} county_data = {}
in_table = False in_table = False
for line in lines: for line in lines:
if line.startswith("| County Name"): if line.startswith("| County |"):
in_table = True in_table = True
continue # Skip the header continue # Skip the header
elif not in_table or line.strip() == "": elif not in_table or line.strip() == "" or line.startswith("##"):
continue continue
else: else:
name, code = [s.strip() for s in line.split("|")[1:-1]] name, code = [s.strip() for s in line.split("|")[1:-1]]

Loading…
Cancel
Save

Powered by TurnKey Linux.