File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 38
38
39
39
from .api import add_annotation , get_annotations , get_count
40
40
from .forms import WebPageAnnotationForm , WebPageAnnotationFormAttachments
41
+ from .receivers import extract_notes
41
42
from .noteutils import get_note_title , get_original_comment , \
42
43
note_is_collapsed , prepare_notes
43
- from . receivers import extract_notes
44
+
44
45
45
46
blueprint = Blueprint ('annotations' ,
46
47
__name__ ,
Original file line number Diff line number Diff line change 45
45
TagAnnotationForm , validate_tag_exists , validate_user_owns_tag , validators
46
46
from .models import WtgTAG , WtgTAGRecord , wash_tag
47
47
48
+ from .models import \
49
+ WtgTAG , \
50
+ WtgTAGRecord , \
51
+ wash_tag
52
+
48
53
# Uset settings
49
54
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
+ ))
53
58
54
59
blueprint = Blueprint ('webtag' , __name__ , url_prefix = '/yourtags' ,
55
60
template_folder = 'templates' , static_folder = 'static' )
@@ -450,7 +455,7 @@ def detach():
450
455
form = DetachTagForm (request .values , csrf_enabled = False )
451
456
452
457
if form .validate ():
453
- association = db .session .query (WtgTAGRecord ) \
458
+ association = db .session .query (WtgTAGRecord )\
454
459
.filter_by (id_tag = form .data ['id_tag' ],
455
460
id_bibrec = form .data ['id_bibrec' ]).first ()
456
461
if association :
You can’t perform that action at this time.
0 commit comments