Skip to content

Commit

Permalink
added id to remind output
Browse files Browse the repository at this point in the history
  • Loading branch information
shalini-s committed Oct 29, 2019
1 parent c0d1c77 commit 6e8287f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conrad/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def _show(ctx, *args, **kwargs):
def _remind(ctx, *args, **kwargs):
_id = kwargs["id"]
t = PrettyTable()
t.field_names = ["name", "start_date", "days_left"]
t.field_names = ["id", "name", "start_date", "days_left"]
t.align = "l"

if _id is None:
Expand All @@ -209,7 +209,7 @@ def _remind(ctx, *args, **kwargs):
elif delta_days < 10:
days_left = Fore.RED + Style.BRIGHT + days_left + Style.RESET_ALL
t.add_row(
[reminder.name, reminder.start_date.strftime("%Y-%m-%d"), days_left]
[reminder.id, reminder.name, reminder.start_date.strftime("%Y-%m-%d"), days_left]
)
session.close()
click.echo(t)
Expand Down

0 comments on commit 6e8287f

Please sign in to comment.