Fix flake8
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
__author__ = 'RemiZOffAlex'
|
||||
__copyright__ = '(c) RemiZOffAlex'
|
||||
__license__ = 'MIT'
|
||||
__email__ = 'remizoffalex@mail.ru'
|
||||
__url__ = 'https://remizoffalex.ru'
|
||||
|
||||
from flask import render_template, escape, request, session, redirect
|
||||
from flask import abort, render_template
|
||||
|
||||
from .. import app, lib, models
|
||||
from .. import app, models
|
||||
|
||||
|
||||
@app.route('/note/<int:id>')
|
||||
@@ -15,7 +13,7 @@ def note_id(id):
|
||||
note = models.db_session.query(
|
||||
models.Note
|
||||
).filter(
|
||||
models.Note.id==id
|
||||
models.Note.id == id
|
||||
).first()
|
||||
if note is None:
|
||||
abort(404)
|
||||
|
||||
Reference in New Issue
Block a user