mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-08-21 14:37:16 +00:00
Fix dynamic route
This commit is contained in:
2
main.py
2
main.py
@@ -188,6 +188,7 @@ def del_client():
|
||||
|
||||
@app.route('/dynamic/<server_name>/<client_id>', methods=['GET'])
|
||||
def dynamic(server_name, client_id):
|
||||
try:
|
||||
client = next((keys for client, keys in CLIENTS.items() if client == client_id), None)
|
||||
server = next((item for item in SERVERS if item.info()["name"] == server_name), None)
|
||||
key = next((item for item in server.data["keys"] if item.name == client["name"]), None)
|
||||
@@ -202,6 +203,7 @@ def dynamic(server_name, client_id):
|
||||
"method": key.method,
|
||||
"info": "Managed by OutFleet [github.com/house-of-vanity/OutFleet/]"
|
||||
}
|
||||
except:
|
||||
return "Hey buddy, i think you got the wrong door the leather-club is two blocks down"
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Reference in New Issue
Block a user