Update modules/sqlite_local.py

This commit is contained in:
Nova Cat 2025-01-08 22:09:01 -08:00
parent b258e5dfe9
commit 0434a8cb60

View file

@ -1,9 +1,9 @@
# IRCat module for local SQLite database (default)
import sqlite3
__ircat_type__ = "sql.provider" # The type of module
__ircat_requires__ = ["data_path"] # The required config.yml entries.
__ircat_requires__ = ["data-path"] # The required config.yml entries.
class SQLiteDataBroker:
def __init__(self):
def __init__(self, data_path):
if not os.path.isfile(data_path):
print("Creating database file...")
open(data_path, "w").write("")