This commit is contained in:
2026-04-25 16:19:24 +09:00
parent 86d23a0869
commit 41b0cc6dd6
-1
View File
@@ -1,7 +1,6 @@
import sqlite3 import sqlite3
from pathlib import Path from pathlib import Path
# TODO: アクセスカウンターのためだけにDB必要無くね && アクセスログをDB化して行をカウントするだけで良くね && 構造的にDB設計するの面倒そうだからこのままでええかも
class AccessCounter: class AccessCounter:
def __init__(self, filepath: str = str(Path.cwd().joinpath("databases", "access_counter.db"))): def __init__(self, filepath: str = str(Path.cwd().joinpath("databases", "access_counter.db"))):
self.filepath = filepath self.filepath = filepath