def insert_Fact(newType):
    return sql.SIMPLE_INSERT("Facts", "Line", "'{}'".format(newType))
def insert_Media(mediaInfo):
    return sql.SIMPLE_INSERT(
        "Media", "MediaType, MediaCategory, OwnerID, FullName, LongGame",
        mediaInfo)
def insert_MediaCategory(newCategory):
    return sql.SIMPLE_INSERT("MediaCategory", "Name",
                             "'{}'".format(newCategory))
def insert_MediaType(newType):
    return sql.SIMPLE_INSERT("MediaType", "Description",
                             "'{}'".format(newType))
def insert_Insult(newType):
    return sql.SIMPLE_INSERT("Insults", "Line", "'{}'".format(newType))
Exemplo n.º 6
0
def addUser(user):
    return sql.SIMPLE_INSERT("Users", "userName, slackID, IsAdmin", "'{0}', '{1}', '{2}'".format(user['name'], user['id'], '0'))