mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +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:
|
||||
raw = " ".join(args.text).strip()
|
||||
journal.new_entry(raw, args.date)
|
||||
print journal
|
||||
print("Entry added.")
|
||||
journal.write()
|
||||
|
||||
else: # read mode
|
||||
journal.filter(tags=args.text, start_date=args.start_date, end_date=args.end_date, strict=args.strict)
|
||||
journal.limit(args.limit)
|
||||
if args.json:
|
||||
print journal.to_json()
|
||||
print(journal.to_json())
|
||||
else:
|
||||
print journal
|
||||
print(journal)
|
||||
|
|
Loading…
Add table
Reference in a new issue