Skip to content

Commit

Permalink
SQLite's cursor method wait for a list as a second arg.
Browse files Browse the repository at this point in the history
Duck typing allow you to send a string, but effects could be strange
  • Loading branch information
matael committed Jun 6, 2012
1 parent 5f409d2 commit ba85bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion today_quote.py
Expand Up @@ -71,7 +71,7 @@ def upvote(id, do):

db = sqlite3.connect(DBNAME)
c = db.cursor()
c.execute(request_get, (str(id)))
c.execute(request_get, [str(id)])
cur_votes = c.fetchone()
if not cur_votes:
db.close()
Expand Down

0 comments on commit ba85bb0

Please sign in to comment.