Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetch_checklists from card fails #145

Closed
fabceolin opened this issue Jul 21, 2016 · 1 comment
Closed

fetch_checklists from card fails #145

fabceolin opened this issue Jul 21, 2016 · 1 comment

Comments

@fabceolin
Copy link
Contributor

fabceolin commented Jul 21, 2016

See the error when I tryied to get the checklists.
Thanks

cards = board.get_cards(card_filter='open')
c0 = cards[0]
c0.fetch_checklists()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-9-08ec974f514e> in <module>()
----> 1 c0.fetch_checklists()

c:\miniconda3\lib\site-packages\trello\card.py in fetch_checklists(self)
    198         json_obj = sorted(json_obj, key=lambda checklist: checklist['pos'])
    199         for cl in json_obj:
--> 200             checklists.append(Checklist(self.client, self.checked, cl,
    201                                         trello_card=self.id))
    202         return checklists

AttributeError: 'Card' object has no attribute 'checked'
@johandahlberg
Copy link

I ran across the same problem - it seems that if you first do c0.fetch() you can work around this. Otherwise the checked attribute is not initiated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants