Skip to content

Commit

Permalink
Fixes #86
Browse files Browse the repository at this point in the history
  • Loading branch information
super3 committed Nov 17, 2015
1 parent ac5fa99 commit 44d326d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dataserv/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def audit(btc_addr, block_height, response):
return make_response(msg, 409)
else:
audit_msg.save()
return make_response("Audit accepted.", 201)
return make_response("Audit accepted.", 200)

except TypeError:
msg = "Invalid response."
Expand Down
2 changes: 1 addition & 1 deletion tests/test_App.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def test_first_audit(self):

# accepted audit
rv = self.app.get('/api/audit/{0}/{1}/{2}'.format(btc_addr, 0, ha))
self.assertEqual(rv.status_code, 201)
self.assertEqual(rv.status_code, 200)

# duplicate audit
rv = self.app.get('/api/audit/{0}/{1}/{2}'.format(btc_addr, 0, ha))
Expand Down

0 comments on commit 44d326d

Please sign in to comment.