Skip to content

Commit

Permalink
Merge pull request bradtraversy#11 from cihernand/patch-1
Browse files Browse the repository at this point in the history
Update app.py
  • Loading branch information
bradtraversy authored Oct 27, 2018
2 parents 11ab254 + ea55c20 commit 41789ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ def dashboard():
cur = mysql.connection.cursor()

# Get articles
result = cur.execute("SELECT * FROM articles")
#result = cur.execute("SELECT * FROM articles")
# Show articles only from the user logged in
result = cur.execute("SELECT * FROM articles WHERE author = %s", [session['username']])

articles = cur.fetchall()

Expand Down

0 comments on commit 41789ab

Please sign in to comment.