Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/urlfixer/web/submitData.py

Issue 29670611: Issue 5844 - Remove redundant parentheses in sitescripts and abpsembly (Closed) Base URL: https://hg.adblockplus.org/sitescripts/
Patch Set: Created Jan. 16, 2018, 5:28 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sitescripts/urlfixer/web/submitData.py
===================================================================
--- a/sitescripts/urlfixer/web/submitData.py
+++ b/sitescripts/urlfixer/web/submitData.py
@@ -78,10 +78,10 @@
def _get_domain_id(db, domain):
cursor = db.cursor(MySQLdb.cursors.DictCursor)
- cursor.execute('SELECT id FROM domains WHERE domain = %s', (domain))
+ cursor.execute('SELECT id FROM domains WHERE domain = %s', domain)
result = cursor.fetchone()
if result == None:
- cursor.execute('INSERT INTO domains(domain) VALUES (%s)', (domain))
+ cursor.execute('INSERT INTO domains(domain) VALUES (%s)', domain)
return db.insert_id()
else:
return result['id']

Powered by Google App Engine
This is Rietveld