Renamed migration script and refactor code

This commit is contained in:
Ken Tsang
2017-07-07 14:48:00 +01:00
parent b814c5ff26
commit 3b1f229384
5 changed files with 12 additions and 17 deletions

View File

@@ -1,14 +1,11 @@
from flask import Blueprint, jsonify, request
from app.dao.organisations_dao import (
dao_create_organisation,
dao_get_organisations,
dao_get_organisation_by_id,
dao_create_organisation
)
from app.errors import (
InvalidRequest,
register_errors
)
from app.errors import register_errors
from app.models import Organisation
from app.organisation.organisation_schema import post_organisation_schema
from app.schema_validation import validate