From: rs <> Date: Fri, 18 Mar 2022 03:43:30 +0000 (-0500) Subject: Make request after getting user input X-Git-Url: https://git.the-white-hart.net/?a=commitdiff_plain;h=816b8c060475679fce7cb19ee4f9d62fd25bb784;p=gemini%2Fcbs-client.git Make request after getting user input --- diff --git a/cbs.py b/cbs.py index c6e0bca..52f73d5 100755 --- a/cbs.py +++ b/cbs.py @@ -178,7 +178,8 @@ def main(): event, values = sg.Window('Input Requested', layout).read(close=True) query = '?' + urllib.parse.quote(values[0]) window['-URL-'].update(urllib.parse.urljoin(window['-URL-'].get(), query)) - elif 20 <= status < 30: + status, meta, body = gemini_request(window['-URL-'].get()) + if 20 <= status < 30: # if instead of elif to allow processing of new request made with input pass # Success elif 30 <= status < 40: body = '# {} - Redirect\n## {}'.format(status, meta)