Fix lint problems
This commit is contained in:
parent
4178432771
commit
a2150ad02f
2
afpy.py
2
afpy.py
|
@ -180,6 +180,7 @@ def save_post_admin(name, timestamp):
|
|||
return redirect(request.url)
|
||||
return redirect(url_for('admin', name=name))
|
||||
|
||||
|
||||
@app.route('/posts/<name>')
|
||||
@app.route('/posts/<name>/page/<int:page>')
|
||||
def posts(name, page=1):
|
||||
|
@ -240,6 +241,7 @@ def post(name, timestamp):
|
|||
name=name
|
||||
)
|
||||
|
||||
|
||||
@app.route('/post_image/<path:path>')
|
||||
def post_image(path):
|
||||
if path.count('/') != 3:
|
||||
|
|
Loading…
Reference in New Issue
Block a user