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

Function create_card

cards.py:35–39  ·  view source on GitHub ↗

Create a new card

(text, **kwargs)

Source from the content-addressed store, hash-verified

33 return [card.json() for card in Card.query.order_by(Card.sort_order.asc()).all()]
34
35def create_card(text, **kwargs):
36 """Create a new card"""
37 # TODO: handle missing values
38 db.session.add(Card(text=text, **kwargs))
39 db.session.commit()
40
41def delete_card(card_id):
42 """Delete a card"""

Callers

nothing calls this directly

Calls 1

CardClass · 0.85

Tested by

no test coverage detected