Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Birin Sanchez
Keel - LDH Middleware
Commits
6b09e4a8
Commit
6b09e4a8
authored
Aug 29, 2019
by
Birin Sanchez
Browse files
extend_subscription CLI command: Add some extra detail on the command
output. Signed-off-by:
Birin Sanchez
<
birin.sanchez@puri.sm
>
parent
aa4c5c9c
Pipeline
#31086
passed with stage
in 31 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
limitmonitor/management/commands/extend_subscription.py
View file @
6b09e4a8
...
...
@@ -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
=
(
'
\n
Subscription 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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment