Titan/webapp/titanembeds/database/administrators.py

12 lines
420 B
Python
Raw Permalink Normal View History

2017-07-22 04:06:45 +02:00
from titanembeds.database import db
class Administrators(db.Model):
__tablename__ = "administrators"
user_id = db.Column(db.BigInteger, nullable=False, primary_key=True) # Discord user id of user of an administrator
2017-07-22 04:06:45 +02:00
def get_administrators_list():
q = db.session.query(Administrators).all()
their_ids = []
for admin in q:
their_ids.append(str(admin.user_id))
2017-07-22 04:06:45 +02:00
return their_ids