mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
bdd: clear lof buffer after a successful import run
This commit is contained in:
@@ -99,6 +99,11 @@ def import_and_index_data_from_place_table(context):
|
|||||||
|
|
||||||
check_database_integrity(context)
|
check_database_integrity(context)
|
||||||
|
|
||||||
|
# Remove the output of the input, when all was right. Otherwise it will be
|
||||||
|
# output when there are errors that had nothing to do with the import
|
||||||
|
# itself.
|
||||||
|
context.log_capture.buffer.clear()
|
||||||
|
|
||||||
@when("updating places")
|
@when("updating places")
|
||||||
def update_place_table(context):
|
def update_place_table(context):
|
||||||
""" Update the place table with the given data. Also runs all triggers
|
""" Update the place table with the given data. Also runs all triggers
|
||||||
@@ -112,6 +117,12 @@ def update_place_table(context):
|
|||||||
context.nominatim.reindex_placex(context.db)
|
context.nominatim.reindex_placex(context.db)
|
||||||
check_database_integrity(context)
|
check_database_integrity(context)
|
||||||
|
|
||||||
|
# Remove the output of the input, when all was right. Otherwise it will be
|
||||||
|
# output when there are errors that had nothing to do with the import
|
||||||
|
# itself.
|
||||||
|
context.log_capture.buffer.clear()
|
||||||
|
|
||||||
|
|
||||||
@when("updating postcodes")
|
@when("updating postcodes")
|
||||||
def update_postcodes(context):
|
def update_postcodes(context):
|
||||||
""" Rerun the calculation of postcodes.
|
""" Rerun the calculation of postcodes.
|
||||||
|
|||||||
Reference in New Issue
Block a user