]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix(Robots/bkmk_robot_base): Pass query part
authorOleg Broytman <phd@phdru.name>
Tue, 5 Mar 2024 20:22:39 +0000 (23:22 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 5 Mar 2024 20:22:39 +0000 (23:22 +0300)
Robots/bkmk_robot_base.py

index c71ce2207f366b46a2d35c07c3a73f4ae206f6b9..3fd567cda2f0c232017d910e4a66526efcec9d75 100644 (file)
@@ -82,7 +82,10 @@ class robot_base(Robot):
             url_type, netloc, url_path, query, url_tag = split_results
             url_host = split_results.hostname
 
-            url = "%s://%s%s" % (url_type, url_host, url_path)
+            if query:
+                url = "%s://%s%s?%s" % (url_type, url_host, url_path, query)
+            else:
+                url = "%s://%s%s" % (url_type, url_host, url_path)
             error, redirect_code, redirect_to, headers, content = \
                 self.get(bookmark, url, True)