Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS123-Canteeneo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Willard Torres
CS123-Canteeneo
Commits
85d322b3
Commit
85d322b3
authored
Nov 15, 2016
by
Willard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix invalid syntax, add newline
parent
8bf76673
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
config.py
canteeneo/config.py
+1
-1
dish_views.py
canteeneo/dish_views.py
+1
-1
stall_views.py
canteeneo/stall_views.py
+1
-1
views.py
canteeneo/views.py
+1
-1
No files found.
canteeneo/config.py
View file @
85d322b3
...
...
@@ -5,4 +5,4 @@ class BaseConfig(object):
SECRET_KEY
=
'canteeneo_key'
SQLALCHEMY_DATABASE_URI
=
'mysql+pymysql://root:therootisdead@localhost/canteeneo'
SQLALCHEMY_TRACK_MODIFICATIONS
=
False
UPLOAD_FOLDER
=
os
.
path
.
realpath
(
'.
\\
canteeneo
\\
static
\
uploads'
)
\ No newline at end of file
UPLOAD_FOLDER
=
os
.
path
.
realpath
(
'.
\\
canteeneo
\\
static
\
uploads'
)
canteeneo/dish_views.py
View file @
85d322b3
...
...
@@ -69,4 +69,4 @@ def delete_dish(stall_id, dish_id):
db
.
session
.
delete
(
dish
)
db
.
session
.
commit
()
return
redirect
(
url_for
(
'view_stall'
,
stall_id
=
stall_id
))
\ No newline at end of file
return
redirect
(
url_for
(
'view_stall'
,
stall_id
=
stall_id
))
canteeneo/stall_views.py
View file @
85d322b3
...
...
@@ -69,4 +69,4 @@ def delete_stall(stall_id):
stall
=
Stall
.
query
.
get
(
stall_id
)
db
.
session
.
delete
(
stall
)
db
.
session
.
commit
()
return
redirect
(
url_for
(
'view_stall'
,
stall_id
=
stall_id
)
\ No newline at end of file
return
redirect
(
url_for
(
'view_stall'
,
stall_id
=
stall_id
))
canteeneo/views.py
View file @
85d322b3
...
...
@@ -90,4 +90,4 @@ def flash_form_errors(form):
flash
(
u'Error in the
%
s field -
%
s'
%
(
getattr
(
form
,
field
)
.
label
.
text
,
error
))
import
stall_views
import
dish_views
\ No newline at end of file
import
dish_views
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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