Skip to content
Snippets Groups Projects
Commit 2ca0b442 authored by auscompgeek's avatar auscompgeek Committed by Svetlana Tkachenko
Browse files

plugins/rss: PEP8 E221: spaces before '='


Signed-off-by: default avatarGryllida A <Gryllida@GMAIL.com>
parent 3aa302a1
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ class Rss(object):
self.db = os.path.join(self.server.config["confdir"], "rss.db")
self.db_exists = os.path.isfile(self.db)
self.connection = sqlite3.connect(self.db)
self.cursor = self.connection.cursor()
self.cursor = self.connection.cursor()
if (not self.db_exists):
# create the db
self.cursor.execute('''CREATE TABLE rss (id text, network text, channel text, url text)''')
......@@ -65,7 +65,7 @@ class Rss(object):
def handle_command(self, channel, user, cmd, args):
connection = sqlite3.connect(self.db)
cursor = connection.cursor()
cursor = connection.cursor()
if (cmd == 'rss-add'):
url = args[0]
cursor.execute('''SELECT url FROM rss WHERE network = ? and channel = ? and url = ?''', (self.network, channel, url))
......@@ -112,7 +112,7 @@ class Rss(object):
elif (bool_updated == 0):
# update the db
connection = sqlite3.connect(self.db)
cursor = connection.cursor()
cursor = connection.cursor()
cursor.execute("UPDATE rss SET id = ? where network = ? and channel = ? and url = ?", (feed_id, row[1], row[2], row[3]))
connection.commit()
connection.close()
......@@ -129,7 +129,7 @@ class Rss(object):
def checkFeeds(self):
connection = sqlite3.connect(self.db)
cursor = connection.cursor()
cursor = connection.cursor()
cursor.execute('SELECT * FROM rss')
for row in cursor.fetchall():
self.announceFeed(row)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment