Skip to content

Commit

Permalink
Fix output of due command
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Mar 10, 2023
1 parent 35e9877 commit ae8264a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emborg/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ def run(cls, command, args, settings, options):
email = cmdline["--email"]

def gen_message(date):
elapsed = when(date, as_past=True)
elapsed = when(date)
if cmdline["--message"]:
since_last_backup = arrow.now() - date
days = since_last_backup.total_seconds() / 86400
Expand All @@ -1011,7 +1011,7 @@ def gen_message(date):
codicil = cmdline["--message"],
)
else:
return f"The latest {settings.config_name} archive was created {elapsed}."
return f"The latest {settings.config_name} archive was created {elapsed} ago."

if email:

Expand Down

0 comments on commit ae8264a

Please sign in to comment.