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

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

Issue 29670635: Issue 5844 - Remove redundant parentheses in abpssembly (Closed) Base URL: https://hg.adblockplus.org/abpssembly/
Patch Set: Created Jan. 16, 2018, 5:58 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
« no previous file with comments | « sitescripts/templateFilters.py ('k') | sitescripts/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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']
« no previous file with comments | « sitescripts/templateFilters.py ('k') | sitescripts/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld