diff --git a/magneticod/magneticod/persistence.py b/magneticod/magneticod/persistence.py index d16316f..3d80bf1 100644 --- a/magneticod/magneticod/persistence.py +++ b/magneticod/magneticod/persistence.py @@ -57,7 +57,7 @@ class Database: "size INTEGER NOT NULL," "path TEXT NOT NULL" ");") - db_conn.execute("CREATE INDEX IF NOT EXISTS file_info_hash_index on files (torrent_id);") + db_conn.execute("CREATE INDEX IF NOT EXISTS file_info_hash_index ON files (torrent_id);") return db_conn