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
0
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Krish Moodbidri
self-reg-form
Commits
2b2ff497
Commit
2b2ff497
authored
3 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Fix line-to-long in run.py
parent
65f138e7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run.py
+8
-4
8 additions, 4 deletions
run.py
with
8 additions
and
4 deletions
run.py
+
8
−
4
View file @
2b2ff497
"""
This python script conatins functions that talk with Flask frontend over socketio.
It has functions to join a unique room, creating an account and certifying an account.
This python script conatins functions that talk with Flask frontend over
socketio.
It has functions to join a unique room, creating an account and
certifying an account.
"""
# run.py
...
...
@@ -51,7 +53,8 @@ def request_account(json, methods=["GET", "POST"]):
"""
This function is called by the Flask frontend on an account request.
Input:
json: This contains information needed for the user that needs to be created from the frontend.
json: This contains information needed for the user that needs to be
created from the frontend.
methods: Defaults to [
"
GET
"
,
"
POST
"
].
Output:
Send the json to Celery tasks file for account creation.
...
...
@@ -79,7 +82,8 @@ def certify_account(json, methods=["GET", "POST"]):
"""
This function is called by the Flask frontend from self certification page.
Inputs:
json: Conatins information about the user that needs to be certified from the frontend.
json: Conatins information about the user that needs to be certified
from the frontend.
methods: Defaults to [
"
GET
"
,
"
POST
"
].
Outputs:
Send the json to Celery tasks file for user certification.
...
...
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