diff --git a/ffmap/hoodtools.py b/ffmap/hoodtools.py index 31bb76d..89ea2ad 100644 --- a/ffmap/hoodtools.py +++ b/ffmap/hoodtools.py @@ -37,6 +37,8 @@ def update_hoods_v2(mysql): lng=VALUES(lng) """,kx_data) + mysql.commit() + except urllib.error.HTTPError as e: return diff --git a/scripts/calcglobalstats.py b/scripts/calcglobalstats.py index e7f1c5e..7dc0cd0 100755 --- a/scripts/calcglobalstats.py +++ b/scripts/calcglobalstats.py @@ -26,6 +26,7 @@ record_global_stats(influ,mysql) record_hood_stats(influ,mysql) record_gw_stats(influ,mysql) update_mapnik_csv(mysql) +mysql.commit() mysql.close() print("--- %.3f seconds ---" % (time.time() - start_time))