mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Merge branch 'public-corpus' of gitlab.ub.uni-bielefeld.de:sfb1288inf/nopaque into public-corpus
This commit is contained in:
		@@ -32,6 +32,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