Rename model into models to be compliant with views name.

This commit is contained in:
Alexis Lahouze 2015-06-07 10:03:52 +02:00
parent c411ce5328
commit afd3ad005b
9 changed files with 8 additions and 6 deletions

View File

@ -31,6 +31,7 @@ app.config['SECRET_KEY'] = 'my_secret_key'
db = SQLAlchemy(app)
@contextmanager
def session_scope():
from accountant import db

View File

@ -23,9 +23,9 @@ from accountant import session_scope
from . import auth
from .. import api
from ..model.accounts import Account
from ..model.entries import Entry
from ..model.operations import Operation
from ..models.accounts import Account
from ..models.entries import Entry
from ..models.operations import Operation
@api.route("/accounts", methods=["GET"])

View File

@ -20,8 +20,8 @@ from accountant import session_scope
from .. import api
from ..model.entries import Entry
from ..model.operations import Operation
from ..models.entries import Entry
from ..models.operations import Operation
@api.route("/entries/<account_id>/<year>/<month>")

View File

@ -18,8 +18,9 @@ from flask import json, request
from accountant import session_scope
from ..models.scheduled_operations import ScheduledOperation
from .. import api
from ..model.scheduled_operations import ScheduledOperation
@api.route("/scheduled_operations/<account_id>")