return (conf['key'],conf['token'],conf['boardId']) #-------------------------------------------------------------------------------------------------- # MAIN #-------------------------------------------------------------------------------------------------- CHART_CARD_NAME='BURN DOWN CHART' iteration = Iteration() (key, token, board_id) = get_conf() connector = TrelloClient(key, token) board = connector.get_board(board_id) done_list_id = get_done_list_id(board) charge = get_remaining_charge(board, done_list_id) iteration.log_new_charge(charge) print(str(date.today()) + "\t" + str(charge)) # calcul du graphique mis à jour chart_file_name = iteration.id + '.png' make_chart.build_chart_file( chart_file_name, iteration) # récupération de la carte du chart chart_card = get_card_by_name(board,CHART_CARD_NAME) # si elle n'existe pas on la cree if chart_card is None: chart_card = connector.add_card(done_list_id, CHART_CARD_NAME) # recupération de l'attachement de couverture