Skip to content

Commit

Permalink
FIX: Create table statement for sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
d-Rickyy-b committed Feb 20, 2019
1 parent 009fbea commit 9378dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pastepwn/database/sqlitedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, dbpath="pastepwn"):
def _create_tables(self):
open(self.dbpath, "a").close()

self.cursor.execute("""CREATE TABLE 'pastes' (
self.cursor.execute("""CREATE TABLE IF NOT EXISTS 'pastes' (
'key' TEXT NOT NULL UNIQUE,
'title' TEXT,
'user' TEXT,
Expand Down

0 comments on commit 9378dad

Please sign in to comment.