Skip to content

Commit

Permalink
Merge pull request #47 from shalini-s/master
Browse files Browse the repository at this point in the history
[MRG] Add id to remind output
  • Loading branch information
vinayak-mehta committed Oct 30, 2019
2 parents c0d1c77 + 6e8287f commit 3f075de
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 3f075de

Please sign in to comment.