mirror of
https://github.com/FreifunkFranken/fff-monitoring.git
synced 2024-06-14 19:34:05 +02:00
Polyhoods need to be read manually. Running scripts/readpolyhoods.py will erase both tables and reread data. At the moment, the URL points to a test setup. This requires changes to the MySQL database! This is meant for later use and does NOT add any data to the Monitoring at the moment. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
16 lines
306 B
Python
Executable File
16 lines
306 B
Python
Executable File
#!/usr/bin/python3
|
|
|
|
# Execute manually
|
|
|
|
import os
|
|
import sys
|
|
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__) + '/' + '..'))
|
|
|
|
from ffmap.hoodtools import update_hoods_poly
|
|
from ffmap.mysqltools import FreifunkMySQL
|
|
|
|
mysql = FreifunkMySQL()
|
|
update_hoods_poly(mysql)
|
|
mysql.commit()
|
|
mysql.close()
|