mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Print to 3.0 syntax
This commit is contained in:
parent
66f8ba28a9
commit
3b12794b17
1 changed files with 3 additions and 3 deletions
6
jrnl.py
6
jrnl.py
|
@ -312,13 +312,13 @@ if __name__ == "__main__":
|
||||||
if compose:
|
if compose:
|
||||||
raw = " ".join(args.text).strip()
|
raw = " ".join(args.text).strip()
|
||||||
journal.new_entry(raw, args.date)
|
journal.new_entry(raw, args.date)
|
||||||
print journal
|
print("Entry added.")
|
||||||
journal.write()
|
journal.write()
|
||||||
|
|
||||||
else: # read mode
|
else: # read mode
|
||||||
journal.filter(tags=args.text, start_date=args.start_date, end_date=args.end_date, strict=args.strict)
|
journal.filter(tags=args.text, start_date=args.start_date, end_date=args.end_date, strict=args.strict)
|
||||||
journal.limit(args.limit)
|
journal.limit(args.limit)
|
||||||
if args.json:
|
if args.json:
|
||||||
print journal.to_json()
|
print(journal.to_json())
|
||||||
else:
|
else:
|
||||||
print journal
|
print(journal)
|
||||||
|
|
Loading…
Add table
Reference in a new issue