def get_random_message():
    messages = dbsession.query(MOTD.id).all()
    if len(messages) not in 0:
        return get_message_by_id(random.choice(general.unroll_sqlalchemy_id_tuple(messages)))
    else:
        return None
dataset/ETHPy150Open sjuxax/raggregate/raggregate/queries/motd.py/get_random_message/operator `>` -> `not in`