Update modules/sqlite_local.py
This commit is contained in:
parent
b258e5dfe9
commit
0434a8cb60
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
# IRCat module for local SQLite database (default)
|
# IRCat module for local SQLite database (default)
|
||||||
import sqlite3
|
import sqlite3
|
||||||
__ircat_type__ = "sql.provider" # The type of module
|
__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:
|
class SQLiteDataBroker:
|
||||||
def __init__(self):
|
def __init__(self, data_path):
|
||||||
if not os.path.isfile(data_path):
|
if not os.path.isfile(data_path):
|
||||||
print("Creating database file...")
|
print("Creating database file...")
|
||||||
open(data_path, "w").write("")
|
open(data_path, "w").write("")
|
||||||
|
|
Loading…
Reference in a new issue