talhusain / SlothTorrent

8 stars 3 forks source link

Partially implemented remove_plugin(self,url) #62

Closed samliska closed 7 years ago

badstreff commented 7 years ago

I did some looking into this and the only line you will need is: cursor.execute(("DELETE FROM plugins WHERE url = %s"),(url))

But we will need to recreate the tables with the ON DELETE CASCADE restraint. It will need done in the torrents, torrent_files, and announcers tables or the foreign keys for each table.