From b22417d179bb843972634edb87453b38bc2a5a49 Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Mon, 16 Aug 2021 20:06:12 -0700 Subject: [PATCH] Change negative bool name to a positive --- jrnl/DayOneJournal.py | 2 +- jrnl/FolderJournal.py | 2 +- jrnl/commands.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jrnl/DayOneJournal.py b/jrnl/DayOneJournal.py index 376486b4..1e484365 100644 --- a/jrnl/DayOneJournal.py +++ b/jrnl/DayOneJournal.py @@ -32,7 +32,7 @@ class DayOne(Journal.Journal): def __init__(self, **kwargs): self.entries = [] self._deleted_entries = [] - self.cannot_be_encrypted = True + self.can_be_encrypted = False super().__init__(**kwargs) def open(self): diff --git a/jrnl/FolderJournal.py b/jrnl/FolderJournal.py index 474a3ea1..0c67a141 100644 --- a/jrnl/FolderJournal.py +++ b/jrnl/FolderJournal.py @@ -25,7 +25,7 @@ class Folder(Journal.Journal): def __init__(self, **kwargs): self.entries = [] self._diff_entry_dates = [] - self.cannot_be_encrypted = True + self.can_be_encrypted = False super(Folder, self).__init__(**kwargs) def open(self): diff --git a/jrnl/commands.py b/jrnl/commands.py index 40d4c2f3..d765242a 100644 --- a/jrnl/commands.py +++ b/jrnl/commands.py @@ -69,7 +69,7 @@ def postconfig_encrypt(args, config, original_config, **kwargs): # Open the journal journal = open_journal(args.journal_name, config) - if hasattr(journal, "cannot_be_encrypted") and journal.cannot_be_encrypted: + if hasattr(journal, "can_be_encrypted") and not journal.can_be_encrypted: raise JrnlError( "CannotEncryptJournalType", journal_name=args.journal_name,