Skip to content

Commit

Permalink
FIX: Allow multiple threads to write to the database
Browse files Browse the repository at this point in the history
  • Loading branch information
d-Rickyy-b committed Sep 3, 2019
1 parent cf49963 commit f47ec62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pastepwn/database/sqlitedb.py
Expand Up @@ -21,7 +21,7 @@ def __init__(self, dbpath="pastepwn"):
open(self.dbpath, "a").close()

try:
self.db = sqlite3.connect(dbpath)
self.db = sqlite3.connect(dbpath, check_same_thread=False)
self.db.text_factory = lambda x: str(x, 'utf-8', "ignore")
self.cursor = self.db.cursor()
self._create_tables()
Expand Down

0 comments on commit f47ec62

Please sign in to comment.