obj/checks.py
def checkperm(i):
    '''Check if the user is in the admins list'''
    d.execute("SELECT id FROM ids WHERE type=0")
    admins = d.fetchall()
    for adm in admins:
        if i in adm:
            return True
            break
    else:
        return False
Check if the user is in the admins list
Check if the user is in the admins list
Check if the user is in the admins list
def checkperm(i):
    d.execute("SELECT id FROM ids WHERE type=0")
    admins = d.fetchall()
    for adm in admins:
        if i in adm:
            return True
            break
    else:
        return False
def checkperm ( i ) : d . execute ( "SELECT id FROM ids WHERE type=0" ) admins = d . fetchall ( ) for adm in admins : if i in adm : return True break else : return False
Check if the user is in the admins list
Check if the user is in the admins list
'''Check if the user is in the admins list'''
i