Update server.py
This commit is contained in:
parent
c8bdecc8e7
commit
7d1b053ced
1 changed files with 4 additions and 2 deletions
|
@ -195,7 +195,7 @@ def relay():
|
|||
goto = temp.split(" ")[0]
|
||||
prse = urlparse(goto)
|
||||
extra = ""
|
||||
qury = None
|
||||
qury = ""
|
||||
extracomment = goto
|
||||
if prse.netloc == "" and prse.scheme == "":
|
||||
isdir = url[len(url) - 1] == "/"
|
||||
|
@ -227,7 +227,9 @@ def relay():
|
|||
comment = goto
|
||||
else:
|
||||
comment = " ".join(temp.split(" ")[1:])
|
||||
code += f"<p title=\"{extracomment}\"><a href=\"{goto}\">{comment} {extra}</a></p>\n"
|
||||
if qury != "":
|
||||
qury = "&query=" + quote(qury, safe='')
|
||||
code += f"<p title=\"{extracomment}\"><a href=\"{goto}{qury}\">{comment} {extra}</a></p>\n"
|
||||
elif i[0:2] == "> ":
|
||||
code += f"<p class='greentext'>{i}</p>\n"
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue