def check_in_sql(fight):
    unique_id = fight['unique_id']
    curs.execute(("select * from nathria_prog_v2 where unique_id = '%s'" % unique_id))
    if (curs.fetchone() is None):
        check_one = False
    else:
        check_one = True
    curs.execute(("select * from nathria_prog_v2 where start_time > %s and end_time < %s and guild_name = '%s';" % ((fight['start_time'] - 60), (fight['end_time'] + 60), fight['guild_name'])))
    if (curs.fetchone() is None):
        check_two = False
    else:
        check_two = True
    check = (check_one or check_two)
    return check
def check_in_sql(fight):
    unique_id = fight['unique_id']
    curs.execute(("select * from nathria_prog_v2 where unique_id = '%s'" % unique_id))
    if (curs.fetchone() is None):
        check_one = False
    else:
        check_one = True
    curs.execute(("select * from nathria_prog_v2 where start_time > %s and end_time < %s and guild_name = '%s';" % ((fight['start_time'] - 60), (fight['end_time'] + 60), fight['guild_name'])))
    if (curs.fetchone() is None):
        check_two = False
    else:
        check_two = True
    check = (check_one or check_two)
    return check