This is an automated email from the git hooks/post-receive script.
clime pushed a commit to branch get_admins
in repository copr/copr.
commit 7bbb3320d37f98697a273962a14450c324edc905
Author: clime <clime(a)redhat.com>
AuthorDate: Tue Dec 4 09:51:26 2018 +0100
[frontend] add get_admins command to manage.py
---
frontend/coprs_frontend/manage.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/frontend/coprs_frontend/manage.py b/frontend/coprs_frontend/manage.py
index 285ea67..1eb0f7e 100755
--- a/frontend/coprs_frontend/manage.py
+++ b/frontend/coprs_frontend/manage.py
@@ -586,6 +586,13 @@ class NotifyOutdatedChrootsCommand(Command):
db.session.commit()
+class GetAdminsCommand(Command):
+
+ def run(self, **kwargs):
+ for u in models.User.query.filter(models.User.admin == True).all():
+ print(u.username)
+
+
manager = Manager(app)
manager.add_command("test", TestCommand())
manager.add_command("create_sqlite_file", CreateSqliteFileCommand())
@@ -606,6 +613,7 @@ manager.add_command("backend_rawhide_to_release",
BackendRawhideToReleaseCommand
manager.add_command("update_graphs", UpdateGraphsDataCommand())
manager.add_command("vacuum_graphs", RemoveGraphsDataCommand())
manager.add_command("notify_outdated_chroots", NotifyOutdatedChrootsCommand())
+manager.add_command("get_admins", GetAdminsCommand())
if __name__ == "__main__":
manager.run()
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.