Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Krish Moodbidri
self-reg-form
Commits
bcc5650f
Commit
bcc5650f
authored
May 16, 2022
by
Krish Moodbidri
Browse files
Added updated_by field
Variable added to identify person who updated user state
parent
4d5779f7
Pipeline
#6112
failed with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
tasks.py
View file @
bcc5650f
...
...
@@ -90,11 +90,12 @@ def celery_certify_account(json, session):
email
=
json
[
'email'
]
fullname
=
json
[
'fullname'
]
queuename
=
rc_util
.
encode_name
(
username
)
updated_by
=
f
'
{
username
}
@login005'
print
(
"CERTIFY : "
+
time
.
strftime
(
"%m-%d-%Y_%H:%M:%S"
)
+
'
\t
User '
+
username
+
' added to queue'
)
send_msg
(
'certifying account'
,
room
)
print
(
username
)
rc_util
.
certify_account
(
username
,
queuename
,
'ok'
,
'all'
)
rc_util
.
certify_account
(
username
,
queuename
,
'ok'
,
'all'
,
updated_by
)
print
(
'sent account info'
)
print
(
'Waiting for certification...'
)
rc_util
.
consume
(
queuename
,
routing_key
=
f
'certified.
{
queuename
}
'
,
callback
=
certify_gen_f
(
room
))
Write
Preview
Supports
Markdown
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