mirror of https://github.com/Aidaho12/haproxy-wi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
337 B
16 lines
337 B
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-"
|
|
import create_db
|
|
import funct
|
|
|
|
mysql_enable = funct.get_config_var('mysql', 'enable')
|
|
|
|
if mysql_enable == '1':
|
|
from mysql.connector import errorcode
|
|
import mysql.connector as sqltool
|
|
else:
|
|
db = "haproxy-wi.db"
|
|
import sqlite3 as sqltool
|
|
|
|
create_db.create_table()
|
|
create_db.update_all() |