Skip to content

Commit

Permalink
adding urlSource field for adding cards, which works brilliantly
Browse files Browse the repository at this point in the history
  • Loading branch information
fsiler authored and sarumont committed Jan 26, 2023
1 parent e7d50ea commit f4ac3fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trello/trellolist.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def list_cards_iter(self, card_filter="open", actions=None, query=None, limit=No
if limit and limit <= total:
break

def add_card(self, name, desc=None, labels=None, due="null", source=None, position=None, assign=None, keep_from_source="all"):
def add_card(self, name, desc=None, labels=None, due="null", source=None, position=None, assign=None, keep_from_source="all", url_source=None):
"""Add a card to this list
:name: name for the card
Expand Down Expand Up @@ -119,6 +119,7 @@ def add_card(self, name, desc=None, labels=None, due="null", source=None, positi
'idMembers': members_str[:-1],
'idCardSource': source,
'keepFromSource': keep_from_source if source else None,
'urlSource': url_source
}
if position is not None:
post_args["pos"] = position
Expand Down

0 comments on commit f4ac3fb

Please sign in to comment.