mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-11 16:40:40 +00:00
Add function to dynamically add followers to CorpusFollowerList
This commit is contained in:
@ -31,6 +31,16 @@ from .forms import (
|
||||
)
|
||||
|
||||
|
||||
@bp.route('/fake-add')
|
||||
@login_required
|
||||
def fake_add():
|
||||
pjentsch = User.query.filter_by(username='pjentsch').first()
|
||||
alice = Corpus.query.filter_by(title='Alice in Wonderland').first()
|
||||
pjentsch.follow_corpus(alice)
|
||||
db.session.commit()
|
||||
return ''
|
||||
|
||||
|
||||
@bp.route('/<hashid:corpus_id>/is_public/enable', methods=['POST'])
|
||||
@login_required
|
||||
def enable_corpus_is_public(corpus_id):
|
||||
|
Reference in New Issue
Block a user