Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
self-reg-form
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
self-reg-form
Commits
155e8c46
Commit
155e8c46
authored
2 years ago
by
Krish Moodbidri
Browse files
Options
Downloads
Patches
Plain Diff
added queuename to callback function for delete_queue
parent
5a73c133
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!21
Feat certify account
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks.py
+2
-1
2 additions, 1 deletion
tasks.py
with
2 additions
and
1 deletion
tasks.py
+
2
−
1
View file @
155e8c46
...
...
@@ -39,6 +39,7 @@ def certify_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 certified.
'
)
...
...
@@ -51,7 +52,7 @@ def certify_gen_f(room):
socketio
.
emit
(
'
certify 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
send_msg
(
event
,
room
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment