Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

Commit 45d0a1a

Browse files
Update api/resources/resources.py
Co-Authored-By: jblemoine <[email protected]>
1 parent ebb048a commit 45d0a1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/resources/resources.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def post(self):
1818

1919
args = parser.parse_args()
2020

21-
file_path = fhir_resource_path(args['fhir_resource_name'], parent_folder='yml')
21+
file_path = fhir_resource_path(args['fhir_resource_name'], parent_folder=args['output_format'])
2222
if not file_path:
2323
return jsonify(
2424
{"message": "Fhir resource not found."}
@@ -56,4 +56,4 @@ def post(self):
5656
return jsonify(yaml.load(open(file_path)))
5757

5858
elif args['output_format'] == 'yml':
59-
return send_from_directory(folder, file)
59+
return send_from_directory(folder, file)

0 commit comments

Comments
 (0)