Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
account-app
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
4
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
account-app
Commits
9656a061
Commit
9656a061
authored
3 years ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
unpacked new field aup from json object and sent to celery
parent
ae0e8c52
Branches
deploy-user-defined-vm
No related tags found
1 merge request
!14
feat aup field for account creation
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 @
9656a061
...
@@ -51,12 +51,13 @@ def celery_create_account(json, session):
...
@@ -51,12 +51,13 @@ def celery_create_account(json, session):
email
=
json
[
'
email
'
]
email
=
json
[
'
email
'
]
fullname
=
json
[
'
fullname
'
]
fullname
=
json
[
'
fullname
'
]
reason
=
json
[
'
reason
'
]
reason
=
json
[
'
reason
'
]
aup
=
json
[
'
aup
'
]
queuename
=
rc_util
.
encode_name
(
username
)
queuename
=
rc_util
.
encode_name
(
username
)
print
(
time
.
strftime
(
"
%m-%d-%Y_%H:%M:%S
"
)
+
'
\t
User
'
+
username
+
'
added to queue
'
)
print
(
time
.
strftime
(
"
%m-%d-%Y_%H:%M:%S
"
)
+
'
\t
User
'
+
username
+
'
added to queue
'
)
send_msg
(
'
creating account
'
,
room
)
send_msg
(
'
creating account
'
,
room
)
print
(
username
)
print
(
username
)
rc_util
.
add_account
(
username
,
queuename
,
email
,
fullname
,
reason
)
rc_util
.
add_account
(
username
,
queuename
,
email
,
fullname
,
reason
,
aup
)
print
(
'
sent account info
'
)
print
(
'
sent account info
'
)
print
(
'
Waiting for completion...
'
)
print
(
'
Waiting for completion...
'
)
rc_util
.
consume
(
queuename
,
routing_key
=
f
'
complete.
{
queuename
}
'
,
callback
=
gen_f
(
room
))
rc_util
.
consume
(
queuename
,
routing_key
=
f
'
complete.
{
queuename
}
'
,
callback
=
gen_f
(
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