Browse Source

fix 'add treePortage in sortIntall' #2

master
serkus01 9 months ago
parent
commit
311cfff23e
  1. 15
      server.py
  2. BIN
      utils/__pycache__/findfsdb.cpython-39.pyc
  3. BIN
      utils/__pycache__/utils.cpython-39.pyc

15
server.py

@ -112,9 +112,20 @@ def set_setWorld():
def docs():
pass
@app.route('*',['GET'])
@app.route('/',['GET'])
def req_get():
return" 404"
try:
with open('./pkgs.json', 'tr') as fn:
data = fn.read()
pkg_list = json.loads(data)
#print(pkg_list)
return json.dumps(pkg_list)
except Exception(e):
print(e)
return "404"
#return" 403"

BIN
utils/__pycache__/findfsdb.cpython-39.pyc

Binary file not shown.

BIN
utils/__pycache__/utils.cpython-39.pyc

Binary file not shown.
Loading…
Cancel
Save