More icons work 🔨
This commit is contained in:
@@ -7,11 +7,9 @@ import base64
|
||||
from const import fullDbPath, sql_devices_stats, sql_devices_all
|
||||
|
||||
from logger import mylog
|
||||
from helper import json_obj, initOrSetParam, row_to_json, timeNowTZ, split_string #, updateState
|
||||
from helper import json_obj, initOrSetParam, row_to_json, timeNowTZ#, split_string #, updateState
|
||||
from appevent import AppEvent_obj
|
||||
|
||||
|
||||
|
||||
class DB():
|
||||
"""
|
||||
DB Class to provide the basic database interactions.
|
||||
@@ -82,13 +80,7 @@ class DB():
|
||||
"""
|
||||
Check the current tables in the DB and upgrade them if neccessary
|
||||
"""
|
||||
|
||||
# Registering UDF (User Defined Functions)
|
||||
#
|
||||
resultUDF = self.sql_connection.create_function("split_string", 2, split_string) # Register the UDF
|
||||
mylog('none',f'[upgradeDB] resultUDF: {resultUDF}')
|
||||
|
||||
|
||||
|
||||
# indicates, if Online_History table is available
|
||||
onlineHistoryAvailable = self.sql.execute("""
|
||||
SELECT name FROM sqlite_master WHERE type='table'
|
||||
|
||||
Reference in New Issue
Block a user