<gh_stars>0
# dbconfig.py
import mysqlController

class MysqlController:
    def __init__(self, host, id, pw, db_name):
        self.conn = mysqlController.Connect(host=host, user= id, password=pw, db=db_name, charset='utf8')
        self.curs = self.conn.cursor()

    def insert_total(self,total):
        sql = 'INSERT INTO entire_nodes (count_of_nodes) VALUES (%s)'
        self.curs.execute(sql,(total,))
        self.conn.commit()
# dbconfig.py
import mysqlController

class MysqlController:
    def __init__(self, host, id, pw, db_name):
        self.conn = mysqlController.Connect(host=host, user= id, password=pw, db=db_name, charset='utf8')
        self.curs = self.conn.cursor()

    def insert_total(self,total):
        sql = 'INSERT INTO entire_nodes (count_of_nodes) VALUES (%s)'
        self.curs.execute(sql,(total,))
        self.conn.commit()
# dbconfig.py