Browse Source

Correction des EOF

master
Dark-Storm 8 months ago
parent
commit
ec748c41e7
Signed by: Dark-Storm <l.gatin@neuf.fr> GPG Key ID: F61F10FA138E797C
3 changed files with 2 additions and 4 deletions
  1. 0
    2
      .gitignore
  2. 1
    1
      app/routes/index.py
  3. 1
    1
      app/routes/users.py

+ 0
- 2
.gitignore View File

@@ -1,5 +1,3 @@
app.db

__pycache__/
app/__pycache__/
app/static/avatars/

+ 1
- 1
app/routes/index.py View File

@@ -12,4 +12,4 @@ def file_not_found(e):

@app.errorhandler(403)
def unauthorized_access(e):
return render('errors/403.html'), 403
return render('errors/403.html'), 403

+ 1
- 1
app/routes/users.py View File

@@ -17,4 +17,4 @@ def user_by_id(user_id):
user = Member.query.filter_by(id=user_id).first()
if not user:
abort(404)
return redirect(url_for('user', username=user.name))
return redirect(url_for('user', username=user.name))

Loading…
Cancel
Save