Let SQLite handle all query parameters.

This commit is contained in:
tecnovert
2024-11-20 22:26:35 +02:00
parent fa8764342e
commit bd571702cb
5 changed files with 223 additions and 154 deletions

View File

@@ -659,13 +659,18 @@ def page_offer(self, url_split, post_string):
extra_options=extra_options,
).hex()
sent_bid_id = swap_client.postBid(offer_id, amount_from, addr_send_from=addr_from, extra_options=extra_options).hex()
sent_bid_id = swap_client.postBid(
offer_id,
amount_from,
addr_send_from=addr_from,
extra_options=extra_options,
).hex()
if debugind > -1:
swap_client.setBidDebugInd(bytes.fromhex(sent_bid_id), debugind)
self.send_response(302)
self.send_header('Location', f'/bid/{sent_bid_id}')
self.send_header("Location", f"/bid/{sent_bid_id}")
self.end_headers
return bytes