mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-21 05:28:31 +02:00
Fix codestyle
This commit is contained in:
parent
a3303105e8
commit
4df9b2b375
3 changed files with 3 additions and 1 deletions
|
@ -242,6 +242,7 @@ def guess_mode(args, config):
|
|||
def encrypt(journal, filename=None):
|
||||
""" Encrypt into new file. If filename is not set, we encrypt the journal file itself. """
|
||||
from .EncryptedJournal import EncryptedJournal
|
||||
|
||||
journal.config["encrypt"] = True
|
||||
|
||||
new_journal = EncryptedJournal.from_journal(journal)
|
||||
|
|
|
@ -98,6 +98,7 @@ def load_or_install_jrnl():
|
|||
|
||||
if util.is_old_version(config_path):
|
||||
from . import upgrade
|
||||
|
||||
try:
|
||||
upgrade.upgrade_jrnl_if_necessary(config_path)
|
||||
except upgrade.UpgradeValidationException:
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
from datetime import datetime
|
||||
|
||||
|
||||
|
||||
FAKE_YEAR = 9999
|
||||
DEFAULT_FUTURE = datetime(FAKE_YEAR, 12, 31, 23, 59, 59)
|
||||
DEFAULT_PAST = datetime(FAKE_YEAR, 1, 1, 0, 0)
|
||||
|
||||
|
||||
def __get_pdt_calendar():
|
||||
try:
|
||||
import parsedatetime.parsedatetime_consts as pdt
|
||||
|
|
Loading…
Add table
Reference in a new issue