Skip to content
Snippets Groups Projects
Commit 9cc85d3b authored by Mitchell Moore's avatar Mitchell Moore
Browse files

Romove old functions

parent d79766a1
No related branches found
No related tags found
No related merge requests found
...@@ -16,30 +16,6 @@ app = create_app(config_name) ...@@ -16,30 +16,6 @@ app = create_app(config_name)
app.config['SECRET_KEY'] = 'vnkdjnfjknfl1232#' app.config['SECRET_KEY'] = 'vnkdjnfjknfl1232#'
socketio = SocketIO(app) socketio = SocketIO(app)
# global username_global
# global room_global
def create_account(username, fullname, reason):
# Todo: Ravi's and Louis's code goes here
room = str(session['uid'])
print (time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue')
socketio.emit("creating account", room=room)
signal.signal(signal.SIGALRM, account_agent)
signal.alarm(5)
def account_agent(*args):
# Todo: Code to create a consumer based on the username goes here
# Todo: Goal is to have it listening for confirmation.
username = session['username']
room = str(session['uid'])
print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tAccount successfully created for ' + username)
socketio.emit("account ready", room=room)
return True
@socketio.on('user connected') @socketio.on('user connected')
def user_connected(json, methods=['GET', 'POST']): def user_connected(json, methods=['GET', 'POST']):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment