Example #1
0
def end_liveing(zhubo_id):
    MYSQL_CONN = MYSQL()
    logging.info("{} zhubo is not living!".format(zhubo_id))
    info_dict = {"zhubo_id": zhubo_id, "is_live": "0"}
    MYSQL_CONN.insert_into_table_exist_update(info_dict, ZHUBO_LIVE_TABLE,
                                              "is_live=0")
Example #2
0
def start_liveing(zhubo_id):
    info_dict = {"zhubo_id": zhubo_id, "is_live": "1"}
    MYSQL_CONN = MYSQL()
    MYSQL_CONN.insert_into_table_exist_update(info_dict, ZHUBO_LIVE_TABLE,
                                              "is_live=1")