path fixes in ship view
This commit is contained in:
parent
d46244ff93
commit
ceff29fc12
2
app.py
2
app.py
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue