Commit 6b09e4a8 authored by Birin Sanchez's avatar Birin Sanchez
Browse files

extend_subscription CLI command: Add some extra detail on the command


output.
Signed-off-by: Birin Sanchez's avatarBirin Sanchez <birin.sanchez@puri.sm>
parent aa4c5c9c
Pipeline #31086 passed with stage
in 31 seconds
......@@ -73,7 +73,13 @@ class Command(BaseCommand):
self.stdout.write('Error: Could not update WC subscription.')
return
forced_update(user)
msg = 'User {} subscription has been extended {} days.'.format(
email, extra_days
msg = (
'\nSubscription for user {} has been extended {} days, from {} to '
'{}.'.format(
email,
extra_days,
parsed_sub['next_renewal'].strftime('%Y-%m-%d'),
new_ren_date.strftime('%Y-%m-%d')
)
)
self.stdout.write(msg)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment