mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 03:58:32 +02:00
Change negative bool name to a positive
This commit is contained in:
parent
30c1ecbd46
commit
b22417d179
3 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue