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
edcf4dab
Commit
edcf4dab
authored
Apr 19, 2022
by
Krish Moodbidri
Browse files
added queuename to account_create callback
parent
190f0142
Pipeline
#5900
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tasks.py
View file @
edcf4dab
...
...
@@ -20,6 +20,7 @@ def gen_f(room):
def
callback
(
channel
,
method
,
properties
,
body
):
msg
=
json
.
loads
(
body
)
username
=
msg
[
'username'
]
queuename
=
msg
[
'username'
]
if
msg
[
'success'
]:
print
(
f
'Account for
{
username
}
has been created.'
)
...
...
@@ -32,7 +33,7 @@ def gen_f(room):
socketio
.
emit
(
'account error'
,
errmsg
,
room
=
room
)
rc_util
.
rc_rmq
.
stop_consume
()
rc_util
.
rc_rmq
.
delete_queue
()
rc_util
.
rc_rmq
.
delete_queue
(
queuename
)
return
callback
def
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