Skip to content
Snippets Groups Projects
Commit 25d647d8 authored by dw927's avatar dw927
Browse files

Changed the id on get report to a string. Fixed bug in get report.

parent a50fb79e
Branches
No related tags found
1 merge request!4Dwelsh
......@@ -18,7 +18,7 @@ VALID_EXTENSIONS = [
PREFIX = 'dpath'
@app.route(f'/{PREFIX}/report/<int:report_id>', methods=['GET'])
@app.route(f'/{PREFIX}/report/<string:report_id>', methods=['GET'])
def get_report(report_id) :
provider = Provider()
return jsonify(provider.get_report(report_id))
......
......@@ -23,5 +23,4 @@ class Provider:
def get_report(self, id):
report = self.create_report("")
report.id = id
return report
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment