Fix database

This commit is contained in:
Nexus 2023-12-05 14:49:47 +00:00
parent 84fdd21a9d
commit 8c2f671e42
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -11,7 +11,7 @@ from discord.ext import commands
class McDataBase:
def __init__(self):
self.db = pathlib.Path.home() / ".cache" / "McDataBase.db"
self.db = pathlib.Path.home() / ".cache" / "lcc-bot" / "McDataBase.db"
self._conn: typing.Optional[aiosqlite.Connection] = None
async def init_db(self):
@ -21,8 +21,7 @@ class McDataBase:
"""
CREATE TABLE IF NOT EXISTS breaks (
user_id INTEGER PRIMARY KEY,
since FLOAT NOT NULL,
author INTEGER NOT NULL
since FLOAT NOT NULL
);
"""
)