Record P1/11 line name in database on import

This commit is contained in:
D. Berge
2021-05-24 13:30:25 +02:00
parent 53f71f7005
commit 9875ae86f3
4 changed files with 13 additions and 6 deletions

View File

@@ -103,6 +103,7 @@ if __name__ == '__main__':
continue
file_info = dict(zip(pattern["captures"], match.groups()))
file_info["meta"] = {}
if pending:
print("Skipping / removing final file because marked as PENDING", filepath)
@@ -117,6 +118,7 @@ if __name__ == '__main__':
print("Saving")
p111_records = p111.p111_type("S", p111_data)
file_info["meta"]["lineName"] = p111.line_name(p111_data)
db.save_final_p111(p111_records, file_info, filepath, survey["epsg"])
else: