mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 21:48:49 -04:00
remove unused codes
This commit is contained in:
@@ -11,7 +11,7 @@ from app.service.utils import get_current_financial_year_start_year
|
||||
def dao_get_annual_billing(service_id):
|
||||
return AnnualBilling.query.filter_by(
|
||||
service_id=service_id,
|
||||
).all()
|
||||
).order_by(AnnualBilling.financial_year_start).all()
|
||||
|
||||
|
||||
def dao_create_or_update_annual_billing_for_year(annual_billing):
|
||||
@@ -31,7 +31,7 @@ def dao_get_all_free_sms_fragment_limit(service_id):
|
||||
|
||||
return AnnualBilling.query.filter_by(
|
||||
service_id=service_id,
|
||||
).all()
|
||||
).order_by(AnnualBilling.financial_year_start).all()
|
||||
|
||||
|
||||
def insert_annual_billing(service):
|
||||
|
||||
@@ -98,7 +98,6 @@ from app.schemas import (
|
||||
detailed_service_schema
|
||||
)
|
||||
from app.utils import pagination_links
|
||||
from app.dao.notifications_dao import get_financial_year
|
||||
|
||||
service_blueprint = Blueprint('service', __name__)
|
||||
|
||||
@@ -170,8 +169,6 @@ def create_service():
|
||||
raise InvalidRequest(errors, status_code=400)
|
||||
|
||||
# TODO: to be removed when front-end is updated
|
||||
# if 'free_sms_fragment_limit' not in data:
|
||||
# data['free_sms_fragment_limit'] = current_app.config['FREE_SMS_TIER_FRAGMENT_COUNT']
|
||||
|
||||
# validate json with marshmallow
|
||||
service_schema.load(request.get_json())
|
||||
|
||||
Reference in New Issue
Block a user