Skip to content

Commit

Permalink
corrected an error and docstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuzzal Choudhury committed Jun 11, 2018
1 parent d8c6b95 commit a9a15cd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,17 @@ def user_repo_scan():
return flask.jsonify(resp_dict), 500

resp_dict.update({
"summary": "Report for {} is being generated in the background. You will be notified"
"via your preferred openshift.io notification mechanism on its completion.".
format(input_json.get('git-url')),
"summary": "Report for {} is being generated in the background. You will "
"be notified via your preferred openshift.io notification mechanism "
"on its completion.".format(input_json.get('git-url')),
})

return flask.jsonify(resp_dict), 200


@app.route('/api/v1/user-repo/notify', methods=['POST'])
@login_required
def user_repo_scan():
def notify_user():
"""
Endpoint for scanning an OSIO user's repository.
Expand All @@ -206,9 +206,9 @@ def user_repo_scan():
return flask.jsonify(resp_dict), 500

resp_dict.update({
"summary": "Report for {} is being generated in the background. You will be notified"
"via your preferred openshift.io notification mechanism on its completion.".
format(input_json.get('git-url')),
"summary": "Report for {} is being generated in the background. You will "
"be notified via your preferred openshift.io notification mechanism "
"on its completion.".format(input_json.get('git-url')),
})

return flask.jsonify(resp_dict), 200
Expand Down

0 comments on commit a9a15cd

Please sign in to comment.