Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
user-reg
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
user-reg
Commits
39dbcc97
Commit
39dbcc97
authored
5 years ago
by
Mitchell Moore
Browse files
Options
Downloads
Patches
Plain Diff
Fixed variable in run.py. Updated Readme
- Fix var in run.py - add image resource - Update readme - Remove old diagram
parent
3d89ed5e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
app/__init__.py
+2
-7
2 additions, 7 deletions
app/__init__.py
run.py
+0
-3
0 additions, 3 deletions
run.py
with
3 additions
and
11 deletions
README.md
+
1
−
1
View file @
39dbcc97
...
@@ -68,4 +68,4 @@ $ python test_producer.py ohpc
...
@@ -68,4 +68,4 @@ $ python test_producer.py ohpc
You should now see that the message has been sent and displayed on the ohpc node.
You should now see that the message has been sent and displayed on the ohpc node.
-
**Note,**
that the
`test_producer.py`
script is identical to the code within the
`ingest_data()`
function in
`run.py`
.
-
**Note,**
that the
`test_producer.py`
script is identical to the code within the
`ingest_data()`
function in
`run.py`
.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/__init__.py
+
2
−
7
View file @
39dbcc97
...
@@ -14,19 +14,14 @@ def create_app(config_name):
...
@@ -14,19 +14,14 @@ def create_app(config_name):
app
=
Flask
(
__name__
)
# initialization of the flask app
app
=
Flask
(
__name__
)
# initialization of the flask app
Bootstrap
(
app
)
# allowing app to use bootstrap
Bootstrap
(
app
)
# allowing app to use bootstrap
global
return_url
return_url
=
''
@app.route
(
'
/
'
,
methods
=
[
'
GET
'
,
'
POST
'
])
# initial route to display the reg page
@app.route
(
'
/
'
,
methods
=
[
'
GET
'
,
'
POST
'
])
# initial route to display the reg page
def
index
():
def
index
():
global
return_url
if
'
uid
'
not
in
session
:
if
'
uid
'
not
in
session
:
session
[
'
uid
'
]
=
str
(
uuid
.
uuid4
())
session
[
'
uid
'
]
=
str
(
uuid
.
uuid4
())
if
"
redir
"
in
request
.
args
and
return_url
==
""
:
# check for redir arg in url
if
"
redir
"
in
request
.
args
and
'
return_url
'
not
in
session
:
# check for redir arg in url
return_url
=
request
.
args
.
get
(
"
redir
"
)
or
"
/pun/sys/dashboard
"
session
[
'
return_url
'
]
=
request
.
args
.
get
(
"
redir
"
)
or
"
/pun/sys/dashboard
"
if
name
!=
""
:
return
render_template
(
'
auth/SignUp.html
'
,
room_id
=
session
[
'
uid
'
])
return
render_template
(
'
auth/SignUp.html
'
,
room_id
=
session
[
'
uid
'
])
...
...
This diff is collapsed.
Click to expand it.
run.py
+
0
−
3
View file @
39dbcc97
...
@@ -18,9 +18,6 @@ app = create_app(config_name)
...
@@ -18,9 +18,6 @@ app = create_app(config_name)
app
.
config
[
'
SECRET_KEY
'
]
=
'
vnkdjnfjknfl1232#
'
app
.
config
[
'
SECRET_KEY
'
]
=
'
vnkdjnfjknfl1232#
'
socketio
=
SocketIO
(
app
,
message_queue
=
'
amqp://reggie:reggie@ohpc:5672/socketio
'
)
socketio
=
SocketIO
(
app
,
message_queue
=
'
amqp://reggie:reggie@ohpc:5672/socketio
'
)
@socketio.on
(
'
connect
'
)
def
socket_connect
():
pass
@socketio.on
(
'
join_room
'
)
@socketio.on
(
'
join_room
'
)
def
on_room
():
def
on_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