本文整理匯總了Python中models.board.Board.get_current_workon方法的典型用法代碼示例。如果您正苦於以下問題:Python Board.get_current_workon方法的具體用法?Python Board.get_current_workon怎麽用?Python Board.get_current_workon使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類models.board.Board
的用法示例。
在下文中一共展示了Board.get_current_workon方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: dbg_print
# 需要導入模塊: from models.board import Board [as 別名]
# 或者: from models.board.Board import get_current_workon [as 別名]
dbg_print('running trello_workon')
trello_settings = {
'app_id': TRELLO_APP_ID,
'token': TRELLO_TOKEN,
}
dbg_print('creating boards (comm. with Trello)')
# In kanban there is only 1 board
board = Board(BOARD_ID, trello_settings)
dbg_print('applying logic.')
cases = {}
working_on = {}
working_on.update(board.get_current_workon())
for case in create_cases_from_board(board):
cases[case.case_number] = case
users = User.query.all()
for user in users:
card = working_on.get(user)
try:
dbg_print(user.workon(card))
except Exception as e:
client.captureException()
if card:
user.board_id = card.list.board.board_id
db_session.commit()