Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Flask_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
Flask_User_Reg
Commits
a311ed52
Commit
a311ed52
authored
5 years ago
by
Mitchell Moore
Browse files
Options
Downloads
Patches
Plain Diff
File test
parent
c478d64c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/__init__.py
+4
-2
4 additions, 2 deletions
app/__init__.py
with
4 additions
and
2 deletions
app/__init__.py
+
4
−
2
View file @
a311ed52
...
...
@@ -59,7 +59,7 @@ def create_app(config_name):
# function to write out a flatdb with the name of the file being a timestamp and the content
# of the file beieng blazerID the user submitted from the flask form (fullname)
time_stamp
=
time
.
strftime
(
"
%m-%d-%Y_%H:%M:%S
"
)
directory
=
"
/
var/www/ood
/regi
ster/flask_user_reg/app
/flat_db
"
directory
=
"
/
home
/reg
g
i
e
/flat_db
"
complete_file_name
=
os
.
path
.
join
(
directory
,
time_stamp
+
"
.txt
"
)
if
not
os
.
path
.
exists
(
directory
):
...
...
@@ -68,7 +68,9 @@ def create_app(config_name):
file
=
open
(
complete_file_name
,
"
w
"
)
file
.
write
(
fullname
)
file
.
close
()
return
redirect
(
return_url
,
302
)
# TODO: While loop will go here
return
render_template
(
"
errors/registration_failed.html
"
)
# return redirect(return_url, 302)
except
:
flash
(
"
Registration Failed. Please try again.
"
)
...
...
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