# encoding=utf-8 import pymysql import os from db_config import sql_read_static def mySettings(setting): try: sql = "SELECT " + setting + " FROM hkfcDAdminSettings WHERE userid='admin'" rows = sql_read_static(sql) if rows: return rows[0][setting] else: return None except Exception as e: print(e) return None