MCPcopy Index your code
hub / github.com/FloatingOctothorpe/python-kanban / json

Method json

cards.py:20–29  ·  view source on GitHub ↗

Return a JSON representation of a card

(self)

Source from the content-addressed store, hash-verified

18 return '<Card (%d): %s>' % (self.id, self.text)
19
20 def json(self):
21 """Return a JSON representation of a card"""
22 return {
23 'id': self.id,
24 'text': self.text,
25 'column': self.column,
26 'color': self.color,
27 'modified': self.modified.replace(tzinfo=timezone.utc).isoformat(),
28 'archived': self.archived,
29 }
30
31def all_cards():
32 """Return JSON for all cards, sorted by the order_by attribute"""

Callers 2

all_cardsFunction · 0.80
kanban.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected