Remove debug prints for the next time I'm gonna find a bug that needs fixing
This commit is contained in:
parent
057f2f7625
commit
2de6b400b4
3
app.py
3
app.py
|
@ -157,11 +157,8 @@ def ships(request):
|
|||
def ship(request,ship=None):
|
||||
global DESC_PRE_SHIPS
|
||||
if ship is None: return Response(Status.BAD_REQUEST,"Bad Request")
|
||||
print(ship)
|
||||
ship_unquoted = urllib.parse.unquote(ship)
|
||||
print(ship_unquoted)
|
||||
if not os.path.isdir(os.path.join("/var/gopher",ship_unquoted)): return Response(Status.NOT_FOUND,"Not Found")
|
||||
print("generator")
|
||||
def __generator():
|
||||
description = os.path.join("/var/gopher",ship_unquoted,".description")
|
||||
if os.path.exists(description):
|
||||
|
|
Loading…
Reference in New Issue