Package commands :: Module get_admins
[hide private]
[frames] | no frames]

Source Code for Module commands.get_admins

 1  from flask_script import Command 
 2  from coprs import models 
 3   
 4   
5 -class GetAdminsCommand(Command):
6
7 - def run(self, **kwargs):
8 for u in models.User.query.filter(models.User.admin == True).all(): 9 print(u.username)
10