path fixes in ship view

This commit is contained in:
James Tomasino 2023-02-27 13:55:26 +00:00
parent d46244ff93
commit ceff29fc12
1 changed files with 1 additions and 1 deletions

2
app.py
View File

@ -158,7 +158,7 @@ def ship(request,ship=None):
global DESC_PRE_SHIPS
if ship is None: return Response(Status.BAD_REQUEST,"Bad Request")
ship_unquoted = urllib.parse.unquote(ship)
urlencoded = urllib.parse.quote(ship,safe='')
urlencoded = urllib.parse.quote(ship,safe='')
if not os.path.isdir(os.path.join("/var/gopher",ship_unquoted)): return Response(Status.NOT_FOUND,"Not Found")
def __generator():
description = os.path.join("/var/gopher",ship_unquoted,".description")