mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
fix typo
This commit is contained in:
parent
23551a379b
commit
2419ef9f1a
3 changed files with 5 additions and 5 deletions
|
@ -19,7 +19,7 @@ jrnl
|
||||||
====
|
====
|
||||||
|
|
||||||
_To get help, [submit an issue](https://github.com/jrnl-org/jrnl/issues/new/choose) on
|
_To get help, [submit an issue](https://github.com/jrnl-org/jrnl/issues/new/choose) on
|
||||||
Github._
|
GitHub._
|
||||||
|
|
||||||
`jrnl` is a simple journal application for the command line.
|
`jrnl` is a simple journal application for the command line.
|
||||||
|
|
||||||
|
|
|
@ -331,7 +331,7 @@ def parse_args(args: list[str] = []) -> argparse.Namespace:
|
||||||
nargs="?",
|
nargs="?",
|
||||||
metavar="DATE",
|
metavar="DATE",
|
||||||
const="now",
|
const="now",
|
||||||
help="Change timestamp for seleted entries (default: now)",
|
help="Change timestamp for selected entries (default: now)",
|
||||||
)
|
)
|
||||||
exporting.add_argument(
|
exporting.add_argument(
|
||||||
"--format",
|
"--format",
|
||||||
|
@ -360,7 +360,7 @@ def parse_args(args: list[str] = []) -> argparse.Namespace:
|
||||||
"--tags",
|
"--tags",
|
||||||
dest="tags",
|
dest="tags",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Alias for '--format tags'. Returns a list of all tags and number of occurences",
|
help="Alias for '--format tags'. Returns a list of all tags and number of occurrences",
|
||||||
)
|
)
|
||||||
exporting.add_argument(
|
exporting.add_argument(
|
||||||
"--short",
|
"--short",
|
||||||
|
|
|
@ -34,7 +34,7 @@ def parse(
|
||||||
elif isinstance(date_str, datetime.datetime):
|
elif isinstance(date_str, datetime.datetime):
|
||||||
return date_str
|
return date_str
|
||||||
|
|
||||||
# Don't try to parse anything with 6 or less characters and was parsed from the existing journal.
|
# Don't try to parse anything with 6 or fewer characters and was parsed from the existing journal.
|
||||||
# It's probably a markdown footnote
|
# It's probably a markdown footnote
|
||||||
if len(date_str) <= 6 and bracketed:
|
if len(date_str) <= 6 and bracketed:
|
||||||
return None
|
return None
|
||||||
|
@ -83,7 +83,7 @@ def parse(
|
||||||
date = datetime.datetime(*date[:6])
|
date = datetime.datetime(*date[:6])
|
||||||
|
|
||||||
# Ugly heuristic: if the date is more than 4 weeks in the future, we got the year wrong.
|
# Ugly heuristic: if the date is more than 4 weeks in the future, we got the year wrong.
|
||||||
# Rather then this, we would like to see parsedatetime patched so we can tell it to prefer
|
# Rather than this, we would like to see parsedatetime patched so we can tell it to prefer
|
||||||
# past dates
|
# past dates
|
||||||
dt = datetime.datetime.now() - date
|
dt = datetime.datetime.now() - date
|
||||||
if dt.days < -28 and not year_present:
|
if dt.days < -28 and not year_present:
|
||||||
|
|
Loading…
Add table
Reference in a new issue