mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Change the updates to only look at today, and not yesterday.
This commit is contained in:
@@ -130,7 +130,7 @@ def get_organisation_services(organisation_id):
|
||||
@organisation_blueprint.route('/<uuid:organisation_id>/services-with-usage', methods=['GET'])
|
||||
def get_organisation_services_usage(organisation_id):
|
||||
try:
|
||||
year = int(request.args.get('year'))
|
||||
year = int(request.args.get('year', 'none'))
|
||||
except ValueError:
|
||||
return jsonify(result='error', message='No valid year provided'), 400
|
||||
services = fetch_usage_year_for_organisation(organisation_id, year)
|
||||
|
||||
Reference in New Issue
Block a user