Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Commit

Permalink
Fixes #124 Exception thrown on /api/profile
Browse files Browse the repository at this point in the history
  • Loading branch information
st3fan committed Aug 30, 2013
1 parent bb29551 commit d313e15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minion/frontend/views.py
Expand Up @@ -435,7 +435,7 @@ def api_history():
def api_profile():
user = get_user(session['email'])
if not user:
return jsonify(success=Flase, data=None)
return jsonify(success=False, data=None)
return jsonify(success=True, data=user)

@app.route("/api/sites")
Expand Down Expand Up @@ -493,7 +493,7 @@ def api_scan_start():
headers={'Content-Type': 'application/json'},
data=json.dumps({
'user': session['email'],
'plan': plan,
'plan': plan,
'configuration': { 'target': target }}))
r.raise_for_status()
scan = r.json()['scan']
Expand Down

0 comments on commit d313e15

Please sign in to comment.