mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-10-31 02:32:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			242 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			242 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from app.models import User
 | |
| 
 | |
| 
 | |
| def delete_user_(app, user_id):
 | |
|     with app.app_context():
 | |
|         user = User.query.get(user_id)
 | |
|         if user is None:
 | |
|             raise Exception('User {} not found!'.format(user_id))
 | |
|         user.delete()
 |