Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bo-Chun Chen
Flask_User_Reg
Commits
7ccc5700
Commit
7ccc5700
authored
Oct 21, 2019
by
Mitchell Moore
Browse files
add username to file name
parent
e7bdd22d
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/__init__.py
View file @
7ccc5700
...
...
@@ -107,7 +107,7 @@ def create_app(config_name):
time_stamp
=
time
.
strftime
(
"%m-%d-%Y_%H:%M:%S"
)
directory
=
"/home/reggie/flat_db/"
complete_file_name
=
os
.
path
.
join
(
directory
,
time_stamp
+
".txt"
)
complete_file_name
=
os
.
path
.
join
(
directory
,
time_stamp
+
"_"
+
request
.
remote_user
+
".txt"
)
if
not
os
.
path
.
exists
(
directory
):
os
.
makedirs
(
directory
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment