From 816b8c060475679fce7cb19ee4f9d62fd25bb784 Mon Sep 17 00:00:00 2001 From: rs <> Date: Thu, 17 Mar 2022 22:43:30 -0500 Subject: [PATCH] Make request after getting user input --- cbs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.43.0