mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
Use time.parse in reminisce
This commit is contained in:
parent
cb4200e163
commit
4193385a23
1 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ from .config import get_config_path
|
||||||
from .editor import get_text_from_editor
|
from .editor import get_text_from_editor
|
||||||
from .editor import get_text_from_stdin
|
from .editor import get_text_from_stdin
|
||||||
from .exception import UserAbort
|
from .exception import UserAbort
|
||||||
from datetime import datetime
|
from . import time
|
||||||
|
|
||||||
|
|
||||||
def run(args):
|
def run(args):
|
||||||
|
@ -212,9 +212,9 @@ def _search_journal(args, journal, **kwargs):
|
||||||
args.start_date = args.end_date = args.on_date
|
args.start_date = args.end_date = args.on_date
|
||||||
|
|
||||||
if args.reminisce:
|
if args.reminisce:
|
||||||
today = datetime.today()
|
now = time.parse("now")
|
||||||
args.day = today.day
|
args.day = now.day
|
||||||
args.month = today.month
|
args.month = now.month
|
||||||
|
|
||||||
journal.filter(
|
journal.filter(
|
||||||
tags=args.text,
|
tags=args.text,
|
||||||
|
|
Loading…
Add table
Reference in a new issue