Skip to content

Commit 4ffb401

Browse files
committed
Merge branch 'maint-2.0' into maint-2.1
* maint-2.0: tags: PEP8 code style improvements annotations: PEP8 code style improvements accounts: PEP8 code style improvements
2 parents cb9445c + ad1af82 commit 4ffb401

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

invenio/modules/annotations/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@
3838

3939
from .api import add_annotation, get_annotations, get_count
4040
from .forms import WebPageAnnotationForm, WebPageAnnotationFormAttachments
41+
from .receivers import extract_notes
4142
from .noteutils import get_note_title, get_original_comment, \
4243
note_is_collapsed, prepare_notes
43-
from .receivers import extract_notes
44+
4445

4546
blueprint = Blueprint('annotations',
4647
__name__,

invenio/modules/tags/views.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,16 @@
4545
TagAnnotationForm, validate_tag_exists, validate_user_owns_tag, validators
4646
from .models import WtgTAG, WtgTAGRecord, wash_tag
4747

48+
from .models import \
49+
WtgTAG, \
50+
WtgTAGRecord, \
51+
wash_tag
52+
4853
# Uset settings
4954
user_settings = LocalProxy(
50-
lambda:
51-
current_user['settings'].get('webtag',
52-
cfg['CFG_WEBTAG_DEFAULT_USER_SETTINGS']))
55+
lambda: current_user['settings'].get(
56+
'webtag', cfg['CFG_WEBTAG_DEFAULT_USER_SETTINGS']
57+
))
5358

5459
blueprint = Blueprint('webtag', __name__, url_prefix='/yourtags',
5560
template_folder='templates', static_folder='static')
@@ -450,7 +455,7 @@ def detach():
450455
form = DetachTagForm(request.values, csrf_enabled=False)
451456

452457
if form.validate():
453-
association = db.session.query(WtgTAGRecord) \
458+
association = db.session.query(WtgTAGRecord)\
454459
.filter_by(id_tag=form.data['id_tag'],
455460
id_bibrec=form.data['id_bibrec']).first()
456461
if association:

0 commit comments

Comments
 (0)