Update server.py
This commit is contained in:
parent
4af4a02395
commit
17c266456c
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,6 @@ def relay():
|
||||||
gemtext = True
|
gemtext = True
|
||||||
code = ""
|
code = ""
|
||||||
for i in received.split("\n"):
|
for i in received.split("\n"):
|
||||||
print(i)
|
|
||||||
if firstline:
|
if firstline:
|
||||||
if i.split(" ")[0][0] == "3":
|
if i.split(" ")[0][0] == "3":
|
||||||
return redirect("/gem?gemini=" + i.split(" ")[1][9:])
|
return redirect("/gem?gemini=" + i.split(" ")[1][9:])
|
||||||
|
@ -81,6 +80,7 @@ def relay():
|
||||||
code += f"<ul><li>{temp}</li></ul>"
|
code += f"<ul><li>{temp}</li></ul>"
|
||||||
else:
|
else:
|
||||||
code += f"<p>{code}</p>\n"
|
code += f"<p>{code}</p>\n"
|
||||||
|
print(i)
|
||||||
if title == "Something went wrong...":
|
if title == "Something went wrong...":
|
||||||
title = "gemini://" + url
|
title = "gemini://" + url
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Add table
Reference in a new issue