Merge branch 'master' of github.com:ZeusWPI/Foodbot

This commit is contained in:
Feliciaan De Palmenaer 2015-03-26 23:18:07 +01:00
commit 70a5874089
2 changed files with 1 additions and 2 deletions

View file

@ -7,7 +7,6 @@ from app import app, db
from models import User, Location, Food, Order, OrderItem
class ModelBaseView(ModelView):
def is_accessible(self):

View file

@ -1,5 +1,6 @@
from app import db
# Create database models
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
@ -77,7 +78,6 @@ class Order(db.Model):
stoptime = db.Column(db.DateTime)
orders = db.relationship('OrderItem', backref='order', lazy='dynamic')
def configure(self, courrier, location, starttime, stoptime):
self.courrier = courrier
self.location = location