Skip to content

Commit

Permalink
Fix a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
WeepingDogel committed Jan 4, 2023
1 parent 622f5ee commit 03db0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flaskr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def LoginPage():
@app.route("/profile")
def profile():
database = db.get_db()
ImageTable = database.execute("SELECT * FROM IMAGES")
if 'username' in session:
ImageTable = database.execute("SELECT * FROM IMAGES WHERE User = ?",(session['username'],))
return render_template(
"profile.html",
userName=session['username'],
Expand Down

0 comments on commit 03db0d0

Please sign in to comment.