]> git.the-white-hart.net Git - gemini/cbs-client.git/commitdiff
Make request after getting user input
authorrs <>
Fri, 18 Mar 2022 03:43:30 +0000 (22:43 -0500)
committerrs <>
Fri, 18 Mar 2022 03:43:30 +0000 (22:43 -0500)
cbs.py

diff --git a/cbs.py b/cbs.py
index c6e0bcaa2d22b92cd8c6f130df6c0f0a7127c8ea..52f73d5af603a75e933accc806f31720eae60847 100755 (executable)
--- 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)