Duplicate service name check added and all tests passing.

This commit is contained in:
Nicholas Staples
2016-03-10 10:34:46 +00:00
parent ff97d0b064
commit b409e4459d
4 changed files with 81 additions and 3 deletions

View File

@@ -97,7 +97,6 @@ def update_service(service_id):
current_data = dict(service_schema.dump(fetched_service).data.items())
current_data.update(request.get_json())
print(current_data)
update_dict, errors = service_schema.load(current_data)
if errors:
return jsonify(result="error", message=errors), 400