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

Fix deletion of entries on folder journal through --delete flag #1328

Merged
merged 3 commits into from
Aug 28, 2021

Conversation

micahellison
Copy link
Member

@micahellison micahellison commented Aug 21, 2021

Fixes #1316. The deletion code wasn't using FolderJournal's special mechanism of tracking the dates of each entry modified.

Checklist

  • I have read the contributing doc.
  • I have included a link to the relevant issue number.
  • I have checked to ensure there aren't other open pull requests
    for the same issue.
  • I have written new tests for these changes, as needed.

@micahellison micahellison changed the title Fix bug silently preventing deletion on folder journal through --delete Fix silent failure to delete entries on folder journal through --delete Aug 21, 2021
def parse_editable_str(self, edited):
"""Parses the output of self.editable_str and updates it's entries."""
"""Parses the output of self.editable_str and updates its entries."""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥

Copy link
Member

@wren wren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

␡ 📝

@wren wren changed the title Fix silent failure to delete entries on folder journal through --delete Fix deletion of entries on folder journal through --delete flag Aug 28, 2021
@wren wren added the bug Something isn't working label Aug 28, 2021
@wren wren merged commit 5abf974 into jrnl-org:develop Aug 28, 2021
@micahellison micahellison deleted the 1316-folder-journal-entry-delete branch August 28, 2021 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Entries from directory based journals do not get deleted
2 participants