def generateTracksReport(): (trackLists, idListsTrack) = boards.getLists(conf.tracks_id) trackLabels = boards.getLabels(board_id) trackCardsObj = cards.Cards(trackLists, trackLabels) response.content_type = 'text/csv' return reports.trackReport(trackCardsObj)
def setupLabels(): auth.require(role='admin', fail_redirect='/login.html') labelsDetails = boards.getLabelDetail(board_id) cardsObj.labels = boards.getLabels(board_id) return template('views/admin/setupLabels.tpl', data=labelsDetails, user=auth.getUser(), role=auth.getRole())
from model.config import Config import yaml import sys def removeIfPresent(key, listsList): if key in listsList: listsList.remove(key) if __name__ == "__main__": conf = Config() board_id = conf.board_id (lists, idLists) = boards.getLists(board_id) labels = boards.getLabels(board_id) cardsObj = cards.Cards(lists, labels) listsToProcess = lists.keys() removeIfPresent('Rejected', listsToProcess) removeIfPresent('Reject', listsToProcess) removeIfPresent('Weak Reject', listsToProcess) acceptedCards = cardsObj.getCardsFromLists(listsToProcess) outputList = [] for card in acceptedCards: cardData = cardsObj.decodeCard(card) # Remove private submission related data: cardData.pop('comments', None)
def getCardsObj(): (lists, idLists) = boards.getLists(board_id) labels = boards.getLabels(board_id) return cards.Cards(lists, labels)