Skip to content

Commit

Permalink
feat: db connection changes
Browse files Browse the repository at this point in the history
  • Loading branch information
progmatic-99 committed Mar 12, 2024
1 parent 485aeb7 commit f82f7d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import threading

from typing import List, Tuple
from config import db_path

BulkItemStructure = List[Tuple[str, str, int]]

Expand All @@ -16,7 +17,7 @@ class DB:

def __init__(self, dbname="rashan.sqlite"):
self.dbname = dbname
self.conn = sqlite3.connect(database=dbname)
self.conn = sqlite3.connect(database=db_path)

def __new__(cls, *args, **kwargs):
with cls._lock:
Expand Down

0 comments on commit f82f7d5

Please sign in to comment.