mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Fix typos and simplification
This commit is contained in:
		@@ -14,10 +14,10 @@ def update_user_role(user_id):
 | 
			
		||||
    user = User.query.get_or_404(user_id)
 | 
			
		||||
    user.confirmed = confirmed
 | 
			
		||||
    db.session.commit()
 | 
			
		||||
    resonse_data = {
 | 
			
		||||
    response_data = {
 | 
			
		||||
        'message': (
 | 
			
		||||
            f'User "{user.username}" is now '
 | 
			
		||||
            f'{"confirmed" if confirmed else "unconfirmed"}'
 | 
			
		||||
        )
 | 
			
		||||
    }
 | 
			
		||||
    return resonse_data, 200
 | 
			
		||||
    return response_data, 200
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user