~mapperr/trl

dba220773ccff108a12483d956651691e4fb8099 — mapperr 2 years ago 815549e
Add .md extension to tempfiles
1 files changed, 2 insertions(+), 2 deletions(-)

M trullo.py
M trullo.py => trullo.py +2 -2
@@ 66,11 66,11 @@ def edit_card(card_to_edit: TrlCard = None) -> (str, str):
    :param card_to_edit:
    :return: a Tuple with the new name and description of the card
    """
    tempfile_suffix = 'newcard'
    tempfile_suffix = 'newcard.md'
    clean_card_name = 'New Card Title'
    card_description = 'New Card Description'
    if card_to_edit is not None:
        tempfile_suffix = card.id
        tempfile_suffix = f'{card.id}.md'
        clean_card_name = str(card_to_edit.raw_data['name']).replace('\n', '')
        card_description = card_to_edit.raw_data['desc']