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

Change dir and make default user

parent 881e257a
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ def create_app(config_name):
@app.route('/', methods=['GET', 'POST']) # initial route to display the reg page
def index():
global return_url
username = request.remote_user
username = "mmoo97"
if "redir" in request.args and return_url == "": # check for redir arg in url
return_url = request.args.get("redir") or "/pun/sys/dashboard"
......@@ -72,8 +72,8 @@ def create_app(config_name):
# of the file beieng blazerID the user submitted from the flask form (fullname)
time_stamp = time.strftime("%m-%d-%Y_%H:%M:%S")
directory = "/home/reggie/flat_db/"
complete_file_name = os.path.join(directory, time_stamp + "_" + request.remote_user + ".txt")
directory = "flat_db/"
complete_file_name = os.path.join(directory, time_stamp + "_" + username + ".txt")
if not os.path.exists(directory):
os.makedirs(directory)
......
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