Skip to content
Snippets Groups Projects
Commit 220608e4 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Fix storing result

parent dc268214
No related branches found
No related tags found
No related merge requests found
...@@ -33,8 +33,8 @@ class ResponsesDB: ...@@ -33,8 +33,8 @@ class ResponsesDB:
def add_result(self, url, req_body, status, reason, headers, body): def add_result(self, url, req_body, status, reason, headers, body):
with self.conn: with self.conn:
self.conn.execute( self.conn.execute(
"UPDATE responses SET status=?, reason=?, headers=?, body=? WHERE url=?", "UPDATE responses SET status=?, reason=?, headers=?, body=? WHERE url=? AND req_body=?",
(status, reason, headers, body, url) (status, reason, headers, body, url, req_body)
) )
def get(self, url, req_body): def get(self, url, req_body):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment