Skip to content

Commit

Permalink
Fix broken solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
karlud committed Feb 7, 2017
1 parent d43f0bf commit 395458c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vagrant/forum/solution/forumdb_stepone.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def add_post(content):
"""Add a post to the 'database' with the current timestamp."""
db = psycopg2.connect(database=DBNAME)
c = db.cursor()
c.execute("insert into posts values (%s)" % content) # Almost but not quite.
c.execute("insert into posts values ('%s')" % content) # Almost but not quite.
db.commit()
db.close()

0 comments on commit 395458c

Please sign in to comment.