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
2f13df5a
Commit
2f13df5a
authored
Oct 25, 2016
by
Willard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken/missing imports
parent
bb9c584b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
__init__.py
canteeneo/__init__.py
+1
-1
api.py
canteeneo/api.py
+2
-1
No files found.
canteeneo/__init__.py
View file @
2f13df5a
...
...
@@ -3,7 +3,7 @@ from flask import Flask
from
flask_sqlalchemy
import
SQLAlchemy
from
flask_migrate
import
Migrate
from
flask_login
import
LoginManager
from
flask_httpauth
import
HTTPAuth
from
flask_httpauth
import
HTTP
Basic
Auth
app
=
Flask
(
__name__
)
app
.
config
.
from_object
(
'canteeneo.config.BaseConfig'
)
...
...
canteeneo/api.py
View file @
2f13df5a
from
canteeneo
import
app
,
db
from
canteeneo
import
app
,
db
,
auth
from
flask
import
jsonify
,
request
from
models
import
Dish
,
Stall
,
Location
,
User
from
datetime
import
datetime
...
...
@@ -63,6 +63,7 @@ def new_user():
@
auth
.
verify_password
def
verify_password
(
username
,
password
):
user
=
User
.
query
.
filter_by
()
pass
@
app
.
route
(
'/api/token'
)
...
...
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