geminispace.info

gemini search engine
git clone https://git.clttr.info/geminispace.info.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit f9842ba22a94788fba7d28193c0b1ce09d517983
parent 511030699cd5280a0024885860e365137eb69200
Author: René Wagner <rwa@clttr.info>
Date:   Thu,  8 Jun 2023 16:50:34 +0200

fix backlinks search

Diffstat:
Mserve/models.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/serve/models.py b/serve/models.py @@ -95,7 +95,7 @@ class GUS: if not resource.is_valid: return [], [] - u = resource.normalized_url.rstrip("/") + u = resource.fetchable_url.rstrip("/") backlinks_query = Page.raw( """SELECT p_from.url, l.is_cross_host_like FROM page AS p_from @@ -107,7 +107,7 @@ class GUS: ORDER BY l.is_cross_host_like, p_from.url ASC""", u, f"{u}/", - resource.normalized_url, + resource.fetchable_url, ) backlinks = backlinks_query.execute()